	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keybuf_init
_keybuf_init:                           ## @keybuf_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_preload_search_by_type
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_preload_search_by_type
LBB0_2:
	movq	_MODINFO_METADATA@GOTPCREL(%rip), %rcx
	movq	_MODINFOMD_KEYBUF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_preload_search_info
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_empty_keybuf@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_keybuf@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf kernel"

L_.str.1:                               ## @.str.1
	.asciz	"elf64 kernel"

	.comm	_MODINFO_METADATA,4,2           ## @MODINFO_METADATA
	.comm	_MODINFOMD_KEYBUF,4,2           ## @MODINFOMD_KEYBUF
	.comm	_keybuf,8,3                     ## @keybuf
	.comm	_empty_keybuf,4,2               ## @empty_keybuf
	.no_dead_strip	_keybuf_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keybuf_init
_keybuf_init:                           ; @keybuf_init
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_preload_search_by_type
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_preload_search_by_type
LBB0_2:
Lloh4:
	adrp	x8, _MODINFO_METADATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MODINFO_METADATA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MODINFOMD_KEYBUF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MODINFOMD_KEYBUF@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_preload_search_info
Lloh10:
	adrp	x8, _empty_keybuf@GOTPAGE
Lloh11:
	ldr	x8, [x8, _empty_keybuf@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x0, eq
Lloh12:
	adrp	x9, _keybuf@GOTPAGE
Lloh13:
	ldr	x9, [x9, _keybuf@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf kernel"

l_.str.1:                               ; @.str.1
	.asciz	"elf64 kernel"

	.comm	_MODINFO_METADATA,4,2           ; @MODINFO_METADATA
	.comm	_MODINFOMD_KEYBUF,4,2           ; @MODINFOMD_KEYBUF
	.comm	_keybuf,8,3                     ; @keybuf
	.comm	_empty_keybuf,4,2               ; @empty_keybuf
	.no_dead_strip	_keybuf_init
.subsections_via_symbols
