	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun8i_dwmac_exit
_sun8i_dwmac_exit:                      ## @sun8i_dwmac_exit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	32(%rsi), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_mdio_mux_uninit
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_sun8i_dwmac_unpower_internal_phy
LBB0_5:
	movq	%rbx, %rdi
	callq	_sun8i_dwmac_unset_syscon
	movl	12(%rbx), %edi
	callq	_reset_control_put
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
	movq	(%rbx), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	popq	%rbx
	popq	%rbp
	jmp	_regulator_disable              ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sun8i_dwmac_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun8i_dwmac_exit
_sun8i_dwmac_exit:                      ; @sun8i_dwmac_exit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x1, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_mdio_mux_uninit
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_sun8i_dwmac_unpower_internal_phy
LBB0_5:
	mov	x0, x19
	bl	_sun8i_dwmac_unset_syscon
	ldr	w0, [x19, #12]
	bl	_reset_control_put
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	x0, [x19]
	cbz	x0, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regulator_disable
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sun8i_dwmac_exit
.subsections_via_symbols
