	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anarion_dwmac_probe
_anarion_dwmac_probe:                   ## @anarion_dwmac_probe
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	-40(%rbp), %rsi
	callq	_stmmac_get_platform_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r12, %rdi
	callq	_anarion_config_dt
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	jmp	LBB0_3
LBB0_4:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_stmmac_probe_config_dt
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
LBB0_3:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_anarion_gmac_init@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_anarion_gmac_exit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_anarion_gmac_init
	movq	%r14, (%r15)
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_stmmac_dvr_probe
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_stmmac_remove_config_dt
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_anarion_gmac_exit,4,2          ## @anarion_gmac_exit
	.no_dead_strip	_anarion_dwmac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anarion_dwmac_probe
_anarion_dwmac_probe:                   ; @anarion_dwmac_probe
	.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
	add	x1, sp, #8
	bl	_stmmac_get_platform_resources
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_anarion_config_dt
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	b	LBB0_5
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stmmac_probe_config_dt
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x21
LBB0_5:
	bl	_PTR_ERR
	mov	x20, x0
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
LBB0_7:
Lloh0:
	adrp	x8, _anarion_gmac_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _anarion_gmac_init@GOTPAGEOFF]
	str	x8, [x21, #16]
Lloh2:
	adrp	x8, _anarion_gmac_exit@GOTPAGE
Lloh3:
	ldr	x8, [x8, _anarion_gmac_exit@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_anarion_gmac_init
	str	x20, [x21]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_stmmac_dvr_probe
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_stmmac_remove_config_dt
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_anarion_gmac_exit,4,2          ; @anarion_gmac_exit
	.no_dead_strip	_anarion_dwmac_probe
.subsections_via_symbols
