	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_scan_device
_pci_scan_device:                       ## @pci_scan_device
	.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, %r14d
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rdx
	movl	$60000, %ecx                    ## imm = 0xEA60
	callq	_pci_bus_read_dev_vendor_id
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_pci_alloc_dev
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movl	-20(%rbp), %eax
	movzwl	%ax, %ecx
	movl	%ecx, 4(%rbx)
	shrl	$16, %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_pci_set_of_node
	movq	%rbx, %rdi
	callq	_pci_setup_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	12(%rbx), %edi
	callq	_pci_bus_put
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pci_scan_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_scan_device
_pci_scan_device:                       ; @pci_scan_device
	.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	x20, x1
	mov	x19, x0
	add	x2, sp, #12
	mov	w3, #60000
	bl	_pci_bus_read_dev_vendor_id
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_pci_alloc_dev
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
	str	w20, [x19]
	ldr	w8, [sp, #12]
	and	w9, w8, #0xffff
	lsr	w8, w8, #16
	stp	w9, w8, [x19, #4]
	mov	x0, x19
	bl	_pci_set_of_node
	mov	x0, x19
	bl	_pci_setup_device
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #12]
	bl	_pci_bus_put
	mov	x0, x19
	bl	_kfree
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pci_scan_device
.subsections_via_symbols
