	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_pci_remove
_stmmac_pci_remove:                     ## @stmmac_pci_remove
	.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
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_stmmac_dvr_remove
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_clk_unregister_fixed_rate
LBB0_2:
	movq	_PCI_STD_RESOURCE_END@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	js	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_resource_len
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rbx), %eax
	cmpl	(%r15), %ebx
	movl	%eax, %ebx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movl	%ebx, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pcim_iounmap_regions
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_STD_RESOURCE_END,4,2       ## @PCI_STD_RESOURCE_END
	.no_dead_strip	_stmmac_pci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_pci_remove
_stmmac_pci_remove:                     ; @stmmac_pci_remove
	.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	x19, x0
	bl	_dev_get_drvdata
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_stmmac_dvr_remove
	ldr	x8, [x20]
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_clk_unregister_fixed_rate
LBB0_2:
Lloh0:
	adrp	x21, _PCI_STD_RESOURCE_END@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCI_STD_RESOURCE_END@GOTPAGEOFF]
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_7
; %bb.3:
	mov	w20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_pci_resource_len
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w20, #1
	ldr	w9, [x21]
	cmp	w20, w9
	mov	x20, x8
	b.lt	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_BIT
	mov	x1, x0
	mov	x0, x19
	bl	_pcim_iounmap_regions
LBB0_7:
	mov	x0, x19
	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	_pci_disable_device
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_STD_RESOURCE_END,4,2       ; @PCI_STD_RESOURCE_END
	.no_dead_strip	_stmmac_pci_remove
.subsections_via_symbols
