	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_kernel_binary
_read_kernel_binary:                    ## @read_kernel_binary
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdx
	leaq	-44(%rbp), %rdi
	callq	_hc_fopen
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.1:
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-44(%rbp), %rdi
	callq	_hc_fclose
	jmp	LBB0_9
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_event_log_error
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12
	leaq	101(%r12), %rdi
	callq	_hcmalloc
	leaq	-44(%rbp), %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_hc_fread
	movq	%rax, %r15
	leaq	-44(%rbp), %rdi
	callq	_hc_fclose
	cmpq	%r12, %r15
	jne	LBB0_4
## %bb.5:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movb	$0, (%r15,%r12)
	cmpl	$1, %r14d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rbx
	addq	%r12, %rbx
	xorl	%edi, %edi
	callq	_time
	leaq	L_.str.2(%rip), %rdx
	movl	$100, %esi
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_snprintf
	cltq
	addq	%rax, %r12
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	%r15, (%r14)
	movl	$1, %eax
	jmp	LBB0_10
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_event_log_error
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_hcfree
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"\n//%u\n"

	.comm	_EXTRASZ,8,3                    ## @EXTRASZ
	.no_dead_strip	_read_kernel_binary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_kernel_binary
_read_kernel_binary:                    ; @read_kernel_binary
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	bl	_hc_fopen
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	mov	x1, sp
	mov	x0, x21
	bl	_stat
	cbz	x0, LBB0_6
; %bb.2:
	add	x0, sp, #12
	bl	_hc_fclose
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	bl	_event_log_error
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	x24, [sp]
	add	x0, x24, #101
	bl	_hcmalloc
	mov	x22, x0
	add	x3, sp, #12
	mov	w1, #1
	mov	x2, x24
	bl	_hc_fread
	mov	x26, x0
	add	x0, sp, #12
	bl	_hc_fclose
	cmp	x26, x24
	b.ne	LBB0_10
; %bb.7:
	add	x21, x22, x24
	strb	wzr, [x21]
	cmp	w25, #1
	b.ne	LBB0_9
; %bb.8:
	mov	x0, #0
	bl	_time
	mov	x3, x0
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w1, #100
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_snprintf
	add	x24, x24, w0, sxtw
LBB0_9:
	str	x24, [x20]
	str	x22, [x19]
	mov	w0, #1
	b	LBB0_5
LBB0_10:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	bl	_event_log_error
	mov	x0, x22
	bl	_hcfree
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"\n//%u\n"

	.comm	_EXTRASZ,8,3                    ; @EXTRASZ
	.no_dead_strip	_read_kernel_binary
.subsections_via_symbols
