	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mediatek_dwmac_probe
_mediatek_dwmac_probe:                  ## @mediatek_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 16(%r12)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r14, 8(%r12)
	movl	(%r14), %eax
	movl	%eax, 4(%r12)
	movq	%r12, %rdi
	callq	_mediatek_dwmac_config_dt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	%r12, %rdi
	callq	_mediatek_dwmac_clk_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stmmac_get_platform_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stmmac_probe_config_dt
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	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_10:
	movl	(%r12), %eax
	movl	%eax, 56(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%r12, 24(%r15)
	movq	_mediatek_dwmac_init@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_mediatek_dwmac_exit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mediatek_dwmac_init
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_stmmac_dvr_probe
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_stmmac_remove_config_dt
	jmp	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing dwmac-mediatek variant\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_mediatek_dwmac_exit,4,2        ## @mediatek_dwmac_exit
	.no_dead_strip	_mediatek_dwmac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mediatek_dwmac_probe
_mediatek_dwmac_probe:                  ; @mediatek_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20, #16]
	cbz	w0, LBB0_8
; %bb.2:
	str	x19, [x20, #8]
	ldr	w8, [x19]
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_mediatek_dwmac_config_dt
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_mediatek_dwmac_clk_init
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stmmac_get_platform_resources
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stmmac_probe_config_dt
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_10
LBB0_7:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	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_11:
	ldr	w8, [x20]
	str	w8, [x21, #56]
	stp	xzr, xzr, [x21, #40]
	movi.2s	v0, #1
	str	d0, [x21]
Lloh9:
	adrp	x8, _ETH_DATA_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #32]
Lloh12:
	adrp	x8, _mediatek_dwmac_init@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mediatek_dwmac_init@GOTPAGEOFF]
	stp	x8, x20, [x21, #16]
Lloh14:
	adrp	x8, _mediatek_dwmac_exit@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mediatek_dwmac_exit@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_mediatek_dwmac_init
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_stmmac_dvr_probe
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.12:
	mov	x0, x19
	mov	x1, x21
	bl	_stmmac_remove_config_dt
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing dwmac-mediatek variant\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_mediatek_dwmac_exit,4,2        ; @mediatek_dwmac_exit
	.no_dead_strip	_mediatek_dwmac_probe
.subsections_via_symbols
