	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeepc_setup_pci_hotplug
_eeepc_setup_pci_hotplug:               ## @eeepc_setup_pci_hotplug
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_pci_find_bus
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_eeepc_hotplug_slot_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%r14)
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_pci_hp_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	$0, (%r14)
	movl	%r15d, %ebx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to find wifi PCI bus\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_eeepc_hotplug_slot_ops,4,2     ## @eeepc_hotplug_slot_ops
L_.str.1:                               ## @.str.1
	.asciz	"eeepc-wifi"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to register hotplug slot - %d\n"

	.no_dead_strip	_eeepc_setup_pci_hotplug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeepc_setup_pci_hotplug
_eeepc_setup_pci_hotplug:               ; @eeepc_setup_pci_hotplug
	.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	x19, x0
	mov	w0, #0
	mov	w1, #1
	bl	_pci_find_bus
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x8, _eeepc_hotplug_slot_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eeepc_hotplug_slot_ops@GOTPAGEOFF]
	str	x8, [x19]
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_pci_hp_register
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	str	xzr, [x19]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to find wifi PCI bus\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_eeepc_hotplug_slot_ops,4,2     ; @eeepc_hotplug_slot_ops
l_.str.1:                               ; @.str.1
	.asciz	"eeepc-wifi"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to register hotplug slot - %d\n"

	.no_dead_strip	_eeepc_setup_pci_hotplug
.subsections_via_symbols
