	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk_gmac_probe
_rk_gmac_probe:                         ## @rk_gmac_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, %r15
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stmmac_get_platform_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stmmac_probe_config_dt
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, (%r14)
	movq	_rk_fix_speed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_rk_gmac_setup
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_stmmac_remove_config_dt
	jmp	LBB0_13
LBB0_7:
	movq	%r14, %rdi
	callq	_rk_gmac_clk_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	8(%r14), %rdi
	callq	_rk_gmac_powerup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_stmmac_dvr_probe
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	callq	_rk_gmac_powerdown
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no of match data provided\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rk_fix_speed,4,2               ## @rk_fix_speed
	.no_dead_strip	_rk_gmac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk_gmac_probe
_rk_gmac_probe:                         ; @rk_gmac_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
	bl	_of_device_get_match_data
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_stmmac_get_platform_resources
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stmmac_probe_config_dt
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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_6:
	mov	w8, #1
	str	w8, [x20]
Lloh5:
	adrp	x8, _rk_fix_speed@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rk_fix_speed@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_rk_gmac_setup
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x21, x0
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_stmmac_remove_config_dt
	b	LBB0_5
LBB0_9:
	mov	x0, x20
	bl	_rk_gmac_clk_init
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.10:
	ldr	x0, [x20, #8]
	bl	_rk_gmac_powerup
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.11:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_stmmac_dvr_probe
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.12:
	ldr	x0, [x20, #8]
	bl	_rk_gmac_powerdown
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no of match data provided\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rk_fix_speed,4,2               ; @rk_fix_speed
	.no_dead_strip	_rk_gmac_probe
.subsections_via_symbols
