	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfx_unregister
_dfx_unregister:                        ## @dfx_unregister
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dev_is_pci
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_DFX_BUS_TC
	movq	_DFX_MMIO@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	setne	%r13b
	testl	%eax, %eax
	setne	%r15b
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -96(%rbp)
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_PI_RCV_DATA_K_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%r12), %eax
	movq	_PI_CMD_RSP_K_SIZE_MAX@GOTPCREL(%rip), %rcx
	movq	_PI_CMD_REQ_K_SIZE_MAX@GOTPCREL(%rip), %rsi
	movq	_PI_ALIGN_K_DESC_BLK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	addl	(%rcx), %eax
	addl	(%rsi), %eax
	leal	(%rdi,%rax), %esi
	addl	$7, %esi
	movl	8(%r12), %ecx
	movq	%rbx, %rdi
	callq	_dma_free_coherent
LBB0_2:
	movq	%r14, %rdi
	callq	_dfx_bus_uninit
	leaq	-80(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_dfx_get_bars
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	-96(%rbp), %rsi
	callq	_release_region
LBB0_4:
	orb	%r15b, %r13b
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	-104(%rbp), %rsi
	callq	_release_region
LBB0_6:
	testb	%r13b, %r13b
	je	LBB0_8
## %bb.7:
	movl	4(%r12), %edi
	callq	_iounmap
	movq	-80(%rbp), %rdi
	movq	-112(%rbp), %rsi
	callq	_release_mem_region
	cmpl	$0, -116(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_10
	jmp	LBB0_11
LBB0_8:
	movq	-80(%rbp), %rdi
	movq	-112(%rbp), %rsi
	callq	_release_region
	cmpl	$0, -116(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_to_pci_dev
	movl	%eax, %edi
	callq	_pci_disable_device
LBB0_11:
	movq	%r14, %rdi
	callq	_free_netdev
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DFX_MMIO,8,3                   ## @DFX_MMIO
	.comm	_PI_CMD_REQ_K_SIZE_MAX,4,2      ## @PI_CMD_REQ_K_SIZE_MAX
	.comm	_PI_CMD_RSP_K_SIZE_MAX,4,2      ## @PI_CMD_RSP_K_SIZE_MAX
	.comm	_PI_RCV_DATA_K_SIZE_MAX,4,2     ## @PI_RCV_DATA_K_SIZE_MAX
	.comm	_PI_ALIGN_K_DESC_BLK,4,2        ## @PI_ALIGN_K_DESC_BLK
	.no_dead_strip	_dfx_unregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfx_unregister
_dfx_unregister:                        ; @dfx_unregister
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_dev_get_drvdata
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x20
	bl	_dev_is_pci
	mov	x21, x0
	mov	x0, x20
	bl	_DFX_BUS_TC
Lloh3:
	adrp	x8, _DFX_MMIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DFX_MMIO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w0, #0, #0, eq
	cset	w23, ne
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #48]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	mov	x0, x19
	bl	_unregister_netdev
	ldr	x2, [x22, #16]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _PI_RCV_DATA_K_SIZE_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PI_RCV_DATA_K_SIZE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _PI_CMD_RSP_K_SIZE_MAX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PI_CMD_RSP_K_SIZE_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _PI_CMD_REQ_K_SIZE_MAX@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PI_CMD_REQ_K_SIZE_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _PI_ALIGN_K_DESC_BLK@GOTPAGE
Lloh16:
	ldr	x12, [x12, _PI_ALIGN_K_DESC_BLK@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	madd	w8, w9, w8, w10
	add	w8, w8, w11
	add	w8, w8, w12
	add	w1, w8, #7
	ldr	w3, [x22, #8]
	mov	x0, x20
	bl	_dma_free_coherent
LBB0_2:
	mov	x0, x19
	bl	_dfx_bus_uninit
	add	x1, sp, #32
	add	x2, sp, #8
	mov	x0, x20
	bl	_dfx_get_bars
	ldr	x0, [sp, #48]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [sp, #24]
	bl	_release_region
LBB0_4:
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x1, [sp, #16]
	bl	_release_region
LBB0_6:
	cbz	w23, LBB0_8
; %bb.7:
	ldr	w0, [x22, #4]
	bl	_iounmap
	ldr	x0, [sp, #32]
	ldr	x1, [sp, #8]
	bl	_release_mem_region
	cbnz	w21, LBB0_9
	b	LBB0_10
LBB0_8:
	ldr	x0, [sp, #32]
	ldr	x1, [sp, #8]
	bl	_release_region
	cbz	w21, LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_to_pci_dev
	bl	_pci_disable_device
LBB0_10:
	mov	x0, x19
	bl	_free_netdev
	ldr	x8, [sp, #56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DFX_MMIO,8,3                   ; @DFX_MMIO
	.comm	_PI_CMD_REQ_K_SIZE_MAX,4,2      ; @PI_CMD_REQ_K_SIZE_MAX
	.comm	_PI_CMD_RSP_K_SIZE_MAX,4,2      ; @PI_CMD_RSP_K_SIZE_MAX
	.comm	_PI_RCV_DATA_K_SIZE_MAX,4,2     ; @PI_RCV_DATA_K_SIZE_MAX
	.comm	_PI_ALIGN_K_DESC_BLK,4,2        ; @PI_ALIGN_K_DESC_BLK
	.no_dead_strip	_dfx_unregister
.subsections_via_symbols
