	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenbusb_attach                 ## -- Begin function xenbusb_attach
	.p2align	4, 0x90
_xenbusb_attach:                        ## @xenbusb_attach
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_device_get_softc
	movq	%rax, %rbx
	leaq	76(%rax), %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	%r15, (%rbx)
	movl	%r12d, 72(%rbx)
	movq	%r14, 64(%rbx)
	movq	_xenbusb_nop_confighook_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	48(%rbx), %rdi
	movl	%eax, 56(%rbx)
	movq	%r14, 48(%rbx)
	callq	_config_intrhook_establish
	movq	_XBS_ATTACH_CH_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 44(%rbx)
	movl	$1, 8(%rbx)
	movq	%rbx, %rdi
	callq	_xenbusb_enumerate_bus
	movq	%r14, %rdi
	callq	_xenbusb_probe_children
	leaq	16(%rbx), %r12
	movq	%r15, 16(%rbx)
	movq	_xenbusb_devices_changed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%rbx, 24(%rbx)
	leaq	40(%rbx), %rdi
	movq	_xenbusb_probe_children_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_TASK_INIT
	movq	%r12, %rdi
	callq	_xs_register_watch
	movq	%rbx, %rdi
	callq	_xenbusb_release_confighook
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xenbusb softc lock"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_xenbusb_nop_confighook_cb,4,2  ## @xenbusb_nop_confighook_cb
	.comm	_XBS_ATTACH_CH_ACTIVE,4,2       ## @XBS_ATTACH_CH_ACTIVE
	.comm	_xenbusb_devices_changed,4,2    ## @xenbusb_devices_changed
	.comm	_xenbusb_probe_children_cb,4,2  ## @xenbusb_probe_children_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenbusb_attach                 ; -- Begin function xenbusb_attach
	.p2align	2
_xenbusb_attach:                        ; @xenbusb_attach
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	add	x0, x0, #76
Lloh0:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
	str	x22, [x19]
	str	w21, [x19, #72]
Lloh5:
	adrp	x8, _xenbusb_nop_confighook_cb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xenbusb_nop_confighook_cb@GOTPAGEOFF]
	str	x20, [x19, #64]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	mov	x0, x19
	str	x20, [x0, #48]!
	bl	_config_intrhook_establish
Lloh8:
	adrp	x8, _XBS_ATTACH_CH_ACTIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XBS_ATTACH_CH_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19, #44]
	orr	w8, w9, w8
	str	w8, [x19, #44]
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_xenbusb_enumerate_bus
	mov	x0, x20
	bl	_xenbusb_probe_children
	mov	x21, x19
	str	x22, [x21, #16]!
Lloh11:
	adrp	x8, _xenbusb_devices_changed@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xenbusb_devices_changed@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	x19, [x19, #24]
	add	x0, x19, #40
Lloh14:
	adrp	x8, _xenbusb_probe_children_cb@GOTPAGE
Lloh15:
	ldr	x8, [x8, _xenbusb_probe_children_cb@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x20
	bl	_TASK_INIT
	mov	x0, x21
	bl	_xs_register_watch
	mov	x0, x19
	bl	_xenbusb_release_confighook
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xenbusb softc lock"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_xenbusb_nop_confighook_cb,4,2  ; @xenbusb_nop_confighook_cb
	.comm	_XBS_ATTACH_CH_ACTIVE,4,2       ; @XBS_ATTACH_CH_ACTIVE
	.comm	_xenbusb_devices_changed,4,2    ; @xenbusb_devices_changed
	.comm	_xenbusb_probe_children_cb,4,2  ; @xenbusb_probe_children_cb
.subsections_via_symbols
