	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_int_stream_structure
_write_int_stream_structure:            ## @write_int_stream_structure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	xorl	%eax, %eax
	cmpq	$0, 48(%rbx)
	movl	(%rbx), %ecx
	setne	%al
	leal	(%rax,%rcx,4), %eax
	xorl	%ecx, %ecx
	cmpq	$0, 40(%rbx)
	setne	%cl
	leal	(%rax,%rcx,2), %esi
	movq	%r14, %rdi
	callq	_write_packed_uint
	movq	%r15, %rdi
	callq	_data_flush_buffer
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_write_packed_uint
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_write_packed_uint
	movq	24(%rbx), %rsi
	movq	%r14, %rdi
	callq	_write_int_stream_structure
	cmpq	$0, 16(%rbx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r15
	testq	%r15, %r15
	jne	LBB0_2
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_int_stream_structure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_int_stream_structure
_write_int_stream_structure:            ; @write_int_stream_structure
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x20]
	ldr	w8, [x21]
	ldp	x10, x9, [x21, #40]
	cmp	x9, #0
	cset	w1, ne
	bfi	w1, w8, #2, #30
	cmp	x10, #0
	cset	w8, ne
	bfi	w1, w8, #1, #1
	mov	x0, x19
	bl	_write_packed_uint
	mov	x0, x20
	bl	_data_flush_buffer
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_write_packed_uint
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w1, #0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_write_packed_uint
	ldr	x1, [x21, #24]
	mov	x0, x19
	bl	_write_int_stream_structure
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x21, #8]
	cbnz	x20, LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_int_stream_structure
.subsections_via_symbols
