	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_pci_child_added_method     ## -- Begin function xen_pci_child_added_method
	.p2align	4, 0x90
_xen_pci_child_added_method:            ## @xen_pci_child_added_method
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %edi
	callq	_device_get_ivars
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_bzero
	movl	12(%rbx), %eax
	movl	%eax, -24(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -28(%rbp)
	movl	(%rbx), %eax
	shll	$3, %eax
	orl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_PHYSDEVOP_pci_device_add@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_HYPERVISOR_physdev_op
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %ecx
	callq	_panic
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xen_pci_add_child_method called with NULL dinfo"

	.comm	_PHYSDEVOP_pci_device_add,4,2   ## @PHYSDEVOP_pci_device_add
L_.str.1:                               ## @.str.1
	.asciz	"unable to add device bus %u devfn %u error: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_pci_child_added_method     ; -- Begin function xen_pci_child_added_method
	.p2align	2
_xen_pci_child_added_method:            ; @xen_pci_child_added_method
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x0, x1
	bl	_device_get_ivars
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, sp
	mov	w1, #12
	bl	_bzero
	ldr	d0, [x19, #8]
	stur	d0, [sp, #4]
	ldp	w8, w9, [x19]
	orr	w8, w9, w8, lsl #3
	str	w8, [sp]
Lloh2:
	adrp	x8, _PHYSDEVOP_pci_device_add@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHYSDEVOP_pci_device_add@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_HYPERVISOR_physdev_op
	cbz	w0, LBB0_2
; %bb.1:
	mov	x3, x0
	ldp	w2, w1, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xen_pci_add_child_method called with NULL dinfo"

	.comm	_PHYSDEVOP_pci_device_add,4,2   ; @PHYSDEVOP_pci_device_add
l_.str.1:                               ; @.str.1
	.asciz	"unable to add device bus %u devfn %u error: %d\n"

.subsections_via_symbols
