	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_device_add                 ## -- Begin function pci_device_add
	.p2align	4, 0x90
_pci_device_add:                        ## @pci_device_add
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_pci_configure_device
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_device_initialize
	movq	_pci_release_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r15, %rdi
	callq	_pcibus_to_node
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_set_dev_node
	leaq	48(%rbx), %rax
	movq	%rax, 24(%rbx)
	leaq	44(%rbx), %rax
	movq	%rax, 16(%rbx)
	movl	$-1, 8(%rbx)
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_dma_set_max_seg_size
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_dma_set_seg_boundary
	movq	_pci_fixup_header@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_pci_fixup_device
	movq	%rbx, %rdi
	callq	_pci_reassigndev_resource_alignment
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_pci_init_capabilities
	movq	_pci_bus_sem@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_down_write
	leaq	40(%rbx), %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_up_write
	movq	%rbx, %rdi
	callq	_pcibios_add_device
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_pci_set_msi_domain
	movl	$0, 4(%rbx)
	movq	%r14, %rdi
	callq	_device_add
	shrl	$31, %eax
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_release_dev,4,2            ## @pci_release_dev
	.comm	_pci_fixup_header,4,2           ## @pci_fixup_header
	.comm	_pci_bus_sem,4,2                ## @pci_bus_sem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_device_add                 ; -- Begin function pci_device_add
	.p2align	2
_pci_device_add:                        ; @pci_device_add
	.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, x1
	mov	x19, x0
	bl	_pci_configure_device
	add	x20, x19, #8
	mov	x0, x20
	bl	_device_initialize
Lloh0:
	adrp	x8, _pci_release_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pci_release_dev@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	x0, x21
	bl	_pcibus_to_node
	mov	x1, x0
	mov	x0, x20
	bl	_set_dev_node
	add	x8, x19, #48
	add	x9, x19, #44
	stp	x9, x8, [x19, #16]
	mov	w8, #-1
	str	w8, [x19, #8]
	mov	x0, x20
	mov	w1, #65536
	bl	_dma_set_max_seg_size
	mov	x0, x20
	mov	w1, #-1
	bl	_dma_set_seg_boundary
Lloh3:
	adrp	x8, _pci_fixup_header@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pci_fixup_header@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_pci_fixup_device
	mov	x0, x19
	bl	_pci_reassigndev_resource_alignment
	str	wzr, [x19]
	mov	x0, x19
	bl	_pci_init_capabilities
Lloh6:
	adrp	x22, _pci_bus_sem@GOTPAGE
Lloh7:
	ldr	x22, [x22, _pci_bus_sem@GOTPAGEOFF]
	mov	x0, x22
	bl	_down_write
	add	x0, x19, #40
	mov	x1, x21
	bl	_list_add_tail
	mov	x0, x22
	bl	_up_write
	mov	x0, x19
	bl	_pcibios_add_device
	lsr	w0, w0, #31
	bl	_WARN_ON
	mov	x0, x19
	bl	_pci_set_msi_domain
	str	wzr, [x19, #4]
	mov	x0, x20
	bl	_device_add
	lsr	w0, w0, #31
	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
	b	_WARN_ON
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_release_dev,4,2            ; @pci_release_dev
	.comm	_pci_fixup_header,4,2           ; @pci_fixup_header
	.comm	_pci_bus_sem,4,2                ; @pci_bus_sem
.subsections_via_symbols
