	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dwc_eth_dwmac_probe
_dwc_eth_dwmac_probe:                   ## @dwc_eth_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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_of_device_get_match_data
	movq	%rax, %r14
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, %rbx
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	js	LBB0_14
## %bb.1:
	movl	%ebx, -56(%rbp)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, -48(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi
	jmp	LBB0_5
LBB0_3:
	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.4:
	movq	%r15, %rdi
LBB0_5:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	*8(%r14)
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_13
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dwc_eth_dwmac_config_dt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_stmmac_dvr_probe
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	callq	*(%r14)
LBB0_13:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_stmmac_remove_config_dt
	jmp	LBB0_14
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to probe subdriver: %d\n"

	.no_dead_strip	_dwc_eth_dwmac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dwc_eth_dwmac_probe
_dwc_eth_dwmac_probe:                   ; @dwc_eth_dwmac_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	str	x0, [sp]
	tbnz	x0, #63, LBB0_6
; %bb.1:
	str	w22, [sp, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [sp, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [sp, #16]
	b	LBB0_5
LBB0_3:
	mov	x8, sp
	add	x1, x8, #24
	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	x22, x0
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	x8, [x20, #8]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	blr	x8
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x22, x0
Lloh0:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.9:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_dwc_eth_dwmac_config_dt
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_stmmac_dvr_probe
	mov	x22, x0
	cbz	w0, LBB0_6
LBB0_12:
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
LBB0_13:
	mov	x0, x19
	mov	x1, x21
	bl	_stmmac_remove_config_dt
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to probe subdriver: %d\n"

	.no_dead_strip	_dwc_eth_dwmac_probe
.subsections_via_symbols
