	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_dwmac_mode_quirk
_stmmac_dwmac_mode_quirk:               ## @stmmac_dwmac_mode_quirk
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	cmpq	$0, 8(%rdi)
	movl	4(%rdi), %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_chain_mode_ops@GOTPCREL(%rip), %r15
	cmoveq	_ring_mode_ops@GOTPCREL(%rip), %r15
	movq	_STMMAC_CHAIN_MODE@GOTPCREL(%rip), %rbx
	cmoveq	_STMMAC_RING_MODE@GOTPCREL(%rip), %rbx
	callq	_dev_info
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	movq	%r15, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chain mode enabled\n"

	.comm	_STMMAC_CHAIN_MODE,4,2          ## @STMMAC_CHAIN_MODE
	.comm	_chain_mode_ops,4,2             ## @chain_mode_ops
L_.str.1:                               ## @.str.1
	.asciz	"Ring mode enabled\n"

	.comm	_STMMAC_RING_MODE,4,2           ## @STMMAC_RING_MODE
	.comm	_ring_mode_ops,4,2              ## @ring_mode_ops
	.no_dead_strip	_stmmac_dwmac_mode_quirk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_dwmac_mode_quirk
_stmmac_dwmac_mode_quirk:               ; @stmmac_dwmac_mode_quirk
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	x8, x20, [x0, #8]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x1, x10, x9, eq
Lloh4:
	adrp	x8, _chain_mode_ops@GOTPAGE
Lloh5:
	ldr	x8, [x8, _chain_mode_ops@GOTPAGEOFF]
Lloh6:
	adrp	x9, _ring_mode_ops@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ring_mode_ops@GOTPAGEOFF]
	csel	x21, x9, x8, eq
Lloh8:
	adrp	x8, _STMMAC_RING_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STMMAC_RING_MODE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _STMMAC_CHAIN_MODE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _STMMAC_CHAIN_MODE@GOTPAGEOFF]
	csel	x22, x8, x9, eq
	bl	_dev_info
	ldr	w8, [x22]
	str	w8, [x19]
	str	x21, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chain mode enabled\n"

	.comm	_STMMAC_CHAIN_MODE,4,2          ; @STMMAC_CHAIN_MODE
	.comm	_chain_mode_ops,4,2             ; @chain_mode_ops
l_.str.1:                               ; @.str.1
	.asciz	"Ring mode enabled\n"

	.comm	_STMMAC_RING_MODE,4,2           ; @STMMAC_RING_MODE
	.comm	_ring_mode_ops,4,2              ; @ring_mode_ops
	.no_dead_strip	_stmmac_dwmac_mode_quirk
.subsections_via_symbols
