	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dwc_eth_dwmac_config_dt
_dwc_eth_dwmac_config_dt:               ## @dwc_eth_dwmac_config_dt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movl	$0, -28(%rbp)
	cmpq	$0, 24(%rsi)
	jne	LBB0_3
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movq	24(%r14), %rdx
	movl	%eax, 16(%rdx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movq	24(%r14), %rdx
	movl	$1, %ebx
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	(%rdx), %ecx
	decl	%ecx
LBB0_5:
	movl	%ecx, (%rdx)
	addq	$4, %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movq	24(%r14), %rcx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	4(%rcx), %ebx
	decl	%ebx
LBB0_7:
	movl	%ebx, 4(%rcx)
	leaq	L_.str.3(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movl	-28(%rbp), %ecx
	xorl	%eax, %eax
	testb	$1, %cl
	jne	LBB0_8
## %bb.9:
	testb	$2, %cl
	jne	LBB0_10
LBB0_11:
	testb	$4, %cl
	jne	LBB0_12
LBB0_13:
	testb	$8, %cl
	jne	LBB0_14
LBB0_15:
	testb	$16, %cl
	jne	LBB0_16
LBB0_17:
	testb	$32, %cl
	jne	LBB0_18
LBB0_19:
	testb	$64, %cl
	je	LBB0_21
LBB0_20:
	movq	24(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, %eax
	movl	$256, (%rcx,%rax,4)             ## imm = 0x100
LBB0_21:
	movl	$1, (%r14)
	movq	16(%r14), %rax
	movl	$1, (%rax)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%r14)
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	24(%r14), %rax
	movq	8(%rax), %rax
	movl	$4, (%rax)
	movl	$1, %eax
	movl	-28(%rbp), %ecx
	testb	$2, %cl
	je	LBB0_11
LBB0_10:
	movq	24(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, %edx
	movl	$8, (%rcx,%rdx,4)
	incl	%eax
	movl	-28(%rbp), %ecx
	testb	$4, %cl
	je	LBB0_13
LBB0_12:
	movq	24(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, %edx
	movl	$16, (%rcx,%rdx,4)
	incl	%eax
	movl	-28(%rbp), %ecx
	testb	$8, %cl
	je	LBB0_15
LBB0_14:
	movq	24(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, %edx
	movl	$32, (%rcx,%rdx,4)
	incl	%eax
	movl	-28(%rbp), %ecx
	testb	$16, %cl
	je	LBB0_17
LBB0_16:
	movq	24(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, %edx
	movl	$64, (%rcx,%rdx,4)
	incl	%eax
	movl	-28(%rbp), %ecx
	testb	$32, %cl
	je	LBB0_19
LBB0_18:
	movq	24(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, %edx
	movl	$128, (%rcx,%rdx,4)
	incl	%eax
	movl	-28(%rbp), %ecx
	testb	$64, %cl
	jne	LBB0_20
	jmp	LBB0_21
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
	.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	"snps,en-lpi"

L_.str.1:                               ## @.str.1
	.asciz	"snps,write-requests"

L_.str.2:                               ## @.str.2
	.asciz	"snps,read-requests"

L_.str.3:                               ## @.str.3
	.asciz	"snps,burst-map"

	.no_dead_strip	_dwc_eth_dwmac_config_dt
.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_config_dt
_dwc_eth_dwmac_config_dt:               ; @dwc_eth_dwmac_config_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, [x0]
	str	wzr, [sp, #12]
	ldr	x8, [x1, #24]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_24
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	ldr	x2, [x19, #24]
	str	w0, [x2, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_u32
	ldr	x2, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	b	LBB0_5
LBB0_4:
	ldr	w8, [x2]
	sub	w8, w8, #1
LBB0_5:
	str	w8, [x2], #4
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_u32
	ldr	x8, [x19, #24]
	cbz	x0, LBB0_7
; %bb.6:
	mov	w9, #1
	b	LBB0_8
LBB0_7:
	ldr	w9, [x8, #4]
	sub	w9, w9, #1
LBB0_8:
	str	w9, [x8, #4]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	ldr	w9, [sp, #12]
	tbnz	w9, #0, LBB0_10
; %bb.9:
	mov	w8, #0
	tbnz	w9, #1, LBB0_11
	b	LBB0_12
LBB0_10:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	mov	w9, #4
	str	w9, [x8]
	mov	w8, #1
	ldr	w9, [sp, #12]
	tbz	w9, #1, LBB0_12
LBB0_11:
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	mov	w10, #8
	str	w10, [x9, w8, uxtw #2]
	add	w8, w8, #1
	ldr	w9, [sp, #12]
LBB0_12:
	tbnz	w9, #2, LBB0_20
; %bb.13:
	tbnz	w9, #3, LBB0_21
LBB0_14:
	tbnz	w9, #4, LBB0_22
LBB0_15:
	tbnz	w9, #5, LBB0_23
LBB0_16:
	tbz	w9, #6, LBB0_18
LBB0_17:
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	mov	w10, #256
	str	w10, [x9, w8, uxtw #2]
LBB0_18:
	mov	w0, #0
	ldr	x8, [x19, #16]
	mov	w9, #1
	str	w9, [x8]
	movi.2s	v0, #1
	str	d0, [x19]
	str	w9, [x19, #8]
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_20:
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	mov	w10, #16
	str	w10, [x9, w8, uxtw #2]
	add	w8, w8, #1
	ldr	w9, [sp, #12]
	tbz	w9, #3, LBB0_14
LBB0_21:
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	mov	w10, #32
	str	w10, [x9, w8, uxtw #2]
	add	w8, w8, #1
	ldr	w9, [sp, #12]
	tbz	w9, #4, LBB0_15
LBB0_22:
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	mov	w10, #64
	str	w10, [x9, w8, uxtw #2]
	add	w8, w8, #1
	ldr	w9, [sp, #12]
	tbz	w9, #5, LBB0_16
LBB0_23:
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	mov	w10, #128
	str	w10, [x9, w8, uxtw #2]
	add	w8, w8, #1
	ldr	w9, [sp, #12]
	tbnz	w9, #6, LBB0_17
	b	LBB0_18
LBB0_24:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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	"snps,en-lpi"

l_.str.1:                               ; @.str.1
	.asciz	"snps,write-requests"

l_.str.2:                               ; @.str.2
	.asciz	"snps,read-requests"

l_.str.3:                               ; @.str.3
	.asciz	"snps,burst-map"

	.no_dead_strip	_dwc_eth_dwmac_config_dt
.subsections_via_symbols
