	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_dwmac1_quirks
_stmmac_dwmac1_quirks:                  ## @stmmac_dwmac1_quirks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	movl	12(%rdi), %edi
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	(%rbx), %rax
	movq	_DWMAC_CORE_3_50@GOTPCREL(%rip), %rcx
	movl	12(%rbx), %edi
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_info
	movq	_ndesc_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movl	$1, 8(%rbx)
LBB0_5:
	movq	_enh_desc_ops@GOTPCREL(%rip), %rax
LBB0_6:
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_stmmac_dwmac_mode_quirk
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enhanced/Alternate descriptors\n"

	.comm	_DWMAC_CORE_3_50,8,3            ## @DWMAC_CORE_3_50
L_.str.1:                               ## @.str.1
	.asciz	"Enabled extended descriptors\n"

L_.str.2:                               ## @.str.2
	.asciz	"Extended descriptors not supported\n"

	.comm	_enh_desc_ops,4,2               ## @enh_desc_ops
L_.str.3:                               ## @.str.3
	.asciz	"Normal descriptors\n"

	.comm	_ndesc_ops,4,2                  ## @ndesc_ops
	.no_dead_strip	_stmmac_dwmac1_quirks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_dwmac1_quirks
_stmmac_dwmac1_quirks:                  ; @stmmac_dwmac1_quirks
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x8, x20, [x0, #16]
	ldr	x8, [x8]
	ldr	w0, [x0, #12]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _DWMAC_CORE_3_50@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DWMAC_CORE_3_50@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x19, #12]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
Lloh9:
	adrp	x8, _ndesc_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ndesc_ops@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_5:
Lloh13:
	adrp	x8, _enh_desc_ops@GOTPAGE
Lloh14:
	ldr	x8, [x8, _enh_desc_ops@GOTPAGEOFF]
LBB0_6:
	str	x8, [x20]
	mov	x0, x19
	bl	_stmmac_dwmac_mode_quirk
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enhanced/Alternate descriptors\n"

	.comm	_DWMAC_CORE_3_50,8,3            ; @DWMAC_CORE_3_50
l_.str.1:                               ; @.str.1
	.asciz	"Enabled extended descriptors\n"

l_.str.2:                               ; @.str.2
	.asciz	"Extended descriptors not supported\n"

	.comm	_enh_desc_ops,4,2               ; @enh_desc_ops
l_.str.3:                               ; @.str.3
	.asciz	"Normal descriptors\n"

	.comm	_ndesc_ops,4,2                  ; @ndesc_ops
	.no_dead_strip	_stmmac_dwmac1_quirks
.subsections_via_symbols
