	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_cons_helper
_write_cons_helper:                     ## @write_cons_helper
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r14
	leaq	-52(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %r14
	testq	%r14, %r14
	je	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%r14), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%ebx
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	callq	_cpu_to_le32
	movl	%eax, -52(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$2, %edx
	movq	%r12, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	16(%rbx), %rbx
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, -52(%rbp)
	movl	4(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movl	8(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$3, %edx
	movq	%r12, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$128, (%rbx)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	leaq	12(%rbx), %rdi
	movq	%r12, %rsi
	callq	_ebitmap_write
	testl	%eax, %eax
	je	LBB0_11
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_cons_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_cons_helper
_write_cons_helper:                     ; @write_cons_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x1, LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w21, w21, #1
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #0
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [sp, #16]
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #2
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x21, [x20, #8]
	cbnz	x21, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x20, #16]
	cbnz	x20, LBB0_2
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_8
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21]
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	ldr	w0, [x21, #4]
	bl	_cpu_to_le32
	str	w0, [sp, #16]
	ldr	w0, [x21, #8]
	bl	_cpu_to_le32
	str	w0, [sp, #20]
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #3
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x0, x21, #12
	mov	x1, x19
	bl	_ebitmap_write
	cbz	w0, LBB0_9
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_cons_helper
.subsections_via_symbols
