	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_setup_pci_hotplug
_asus_setup_pci_hotplug:                ## @asus_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_pci_find_bus
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	16(%r14), %rdi
	movq	_asus_hotplug_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%r14), %rdi
	movq	_asus_hotplug_slot_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	leaq	L_.str.2(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_pci_hp_register
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	$0, 8(%r14)
	movl	(%r14), %edi
	callq	_destroy_workqueue
	movl	%r15d, %ebx
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	negl	%r12d
	movl	%r12d, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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
L_.str.1:                               ## @.str.1
	.asciz	"hotplug_workqueue"

	.comm	_asus_hotplug_work,4,2          ## @asus_hotplug_work
	.comm	_asus_hotplug_slot_ops,4,2      ## @asus_hotplug_slot_ops
L_.str.2:                               ## @.str.2
	.asciz	"asus-wifi"

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

	.no_dead_strip	_asus_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 asus_setup_pci_hotplug
_asus_setup_pci_hotplug:                ; @asus_setup_pci_hotplug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #0
	mov	w1, #1
	bl	_pci_find_bus
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.2:
	add	x0, x19, #16
Lloh5:
	adrp	x8, _asus_hotplug_work@GOTPAGE
Lloh6:
	ldr	x8, [x8, _asus_hotplug_work@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh8:
	adrp	x8, _asus_hotplug_slot_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _asus_hotplug_slot_ops@GOTPAGEOFF]
	mov	x0, x19
	str	x8, [x0, #8]!
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	w2, #0
	bl	_pci_hp_register
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.3:
	str	x20, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	bl	_destroy_workqueue
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_5:
	neg	w20, w21
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.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
l_.str.1:                               ; @.str.1
	.asciz	"hotplug_workqueue"

	.comm	_asus_hotplug_work,4,2          ; @asus_hotplug_work
	.comm	_asus_hotplug_slot_ops,4,2      ; @asus_hotplug_slot_ops
l_.str.2:                               ; @.str.2
	.asciz	"asus-wifi"

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

	.no_dead_strip	_asus_setup_pci_hotplug
.subsections_via_symbols
