	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_init                    ## -- Begin function kernel_init
	.p2align	4, 0x90
_kernel_init:                           ## @kernel_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CTL_DEFAULT_DEV@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_open
	movq	_ctl_fd@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_1
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_kldload
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movl	(%r13), %esi
	callq	_open
	movq	%rax, (%r15)
	testq	%rax, %rax
	jns	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movl	%ebx, (%r12)
	movq	(%r15), %rax
	testq	%rax, %rax
	jns	LBB0_6
LBB0_7:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_DEFAULT_DEV,4,2            ## @CTL_DEFAULT_DEV
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_ctl_fd,8,3                     ## @ctl_fd
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctl"

L_.str.1:                               ## @.str.1
	.asciz	"failed to open %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_init                    ; -- Begin function kernel_init
	.p2align	2
_kernel_init:                           ; @kernel_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x19, _CTL_DEFAULT_DEV@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CTL_DEFAULT_DEV@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x21, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _O_RDWR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_open
Lloh4:
	adrp	x20, _ctl_fd@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ctl_fd@GOTPAGEOFF]
	str	x0, [x20]
	tbnz	x0, #63, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x22, _errno@GOTPAGE
Lloh7:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w23, [x22]
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_6
; %bb.3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kldload
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_open
	str	x0, [x20]
	tbz	x0, #63, LBB0_1
	b	LBB0_6
LBB0_5:
	str	w23, [x22]
	ldr	x0, [x20]
	tbz	x0, #63, LBB0_1
LBB0_6:
	ldr	w2, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_log_err
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_DEFAULT_DEV,4,2            ; @CTL_DEFAULT_DEV
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_ctl_fd,8,3                     ; @ctl_fd
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctl"

l_.str.1:                               ; @.str.1
	.asciz	"failed to open %s"

.subsections_via_symbols
