	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_epf_test_unbind
_pci_epf_test_unbind:                   ## @pci_epf_test_unbind
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_epf_get_drvdata
	movq	%rax, %r14
	movq	16(%rbx), %r15
	leaq	8(%rax), %rdi
	callq	_cancel_delayed_work
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_pci_epc_stop
	movq	_BAR_0@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	_BAR_5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	jle	LBB0_1
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r12d, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(,%r12,4), %r15
	movq	$-1, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rcx
	leaq	(%r12,%r13), %rdx
	incq	%rdx
	incq	%r13
	addq	$4, %r15
	cmpq	%rcx, %rdx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	cmpq	$0, (%rcx,%r15,2)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdx
	addq	%r15, %rdx
	movl	(%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_epc_clear_bar
	movq	(%r14), %rax
	movq	(%rax,%r15,2), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %edx
	incl	%edx
	movq	%rbx, %rdi
	callq	_pci_epf_free_space
	movq	_BAR_5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_BAR_0,4,2                      ## @BAR_0
	.comm	_BAR_5,4,2                      ## @BAR_5
	.no_dead_strip	_pci_epf_test_unbind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_epf_test_unbind
_pci_epf_test_unbind:                   ; @pci_epf_test_unbind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_epf_get_drvdata
	mov	x20, x0
	ldr	x21, [x19, #16]
	add	x0, x0, #8
	bl	_cancel_delayed_work
	mov	x0, x21
	bl	_pci_epc_stop
Lloh0:
	adrp	x8, _BAR_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BAR_0@GOTPAGEOFF]
Lloh2:
	ldrsw	x22, [x8]
Lloh3:
	adrp	x23, _BAR_5@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BAR_5@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w22, w8
	b.le	LBB0_2
LBB0_1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	lsl	x24, x22, #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x22, w8, sxtw
	add	x22, x22, #1
	add	x24, x24, #4
	b.ge	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x9, [x9, x22, lsl #3]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x2, x8, x24
	ldr	w1, [x19]
	mov	x0, x21
	bl	_pci_epc_clear_bar
	ldr	x8, [x20]
	ldr	x1, [x8, x22, lsl #3]
	mov	x0, x19
	mov	x2, x22
	bl	_pci_epf_free_space
	ldr	w8, [x23]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BAR_0,4,2                      ; @BAR_0
	.comm	_BAR_5,4,2                      ; @BAR_5
	.no_dead_strip	_pci_epf_test_unbind
.subsections_via_symbols
