	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbp2_module_init
_sbp2_module_init:                      ## @sbp2_module_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_sbp2_serialize_io@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_sbp2_shost_template@GOTPCREL(%rip), %rax
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%rax)
LBB0_2:
	movq	_sbp2_max_sectors@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_sbp2_shost_template@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%rcx)
	movq	_sbp2_highlevel@GOTPCREL(%rip), %rdi
	callq	_hpsb_register_highlevel
	movq	_sbp2_driver@GOTPCREL(%rip), %rdi
	callq	_hpsb_register_protocol
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_SBP2_ERR
	movq	_sbp2_highlevel@GOTPCREL(%rip), %rdi
	callq	_hpsb_unregister_highlevel
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sbp2_serialize_io,8,3          ## @sbp2_serialize_io
	.comm	_sbp2_shost_template,12,2       ## @sbp2_shost_template
	.comm	_sbp2_max_sectors,4,2           ## @sbp2_max_sectors
	.comm	_sbp2_highlevel,4,2             ## @sbp2_highlevel
	.comm	_sbp2_driver,4,2                ## @sbp2_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register protocol"

	.no_dead_strip	_sbp2_module_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbp2_module_init
_sbp2_module_init:                      ; @sbp2_module_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _sbp2_serialize_io@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sbp2_serialize_io@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _sbp2_shost_template@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sbp2_shost_template@GOTPAGEOFF]
	cbz	x9, LBB0_2
; %bb.1:
	movi.2s	v0, #1
	str	d0, [x8]
LBB0_2:
Lloh5:
	adrp	x9, _sbp2_max_sectors@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sbp2_max_sectors@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8, #8]
Lloh8:
	adrp	x0, _sbp2_highlevel@GOTPAGE
Lloh9:
	ldr	x0, [x0, _sbp2_highlevel@GOTPAGEOFF]
	bl	_hpsb_register_highlevel
Lloh10:
	adrp	x0, _sbp2_driver@GOTPAGE
Lloh11:
	ldr	x0, [x0, _sbp2_driver@GOTPAGEOFF]
	bl	_hpsb_register_protocol
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SBP2_ERR
Lloh14:
	adrp	x0, _sbp2_highlevel@GOTPAGE
Lloh15:
	ldr	x0, [x0, _sbp2_highlevel@GOTPAGEOFF]
	bl	_hpsb_unregister_highlevel
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_sbp2_serialize_io,8,3          ; @sbp2_serialize_io
	.comm	_sbp2_shost_template,12,2       ; @sbp2_shost_template
	.comm	_sbp2_max_sectors,4,2           ; @sbp2_max_sectors
	.comm	_sbp2_highlevel,4,2             ; @sbp2_highlevel
	.comm	_sbp2_driver,4,2                ; @sbp2_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register protocol"

	.no_dead_strip	_sbp2_module_init
.subsections_via_symbols
