	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_mmc_setup
_stmmac_mmc_setup:                      ## @stmmac_mmc_setup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MMC_CNTRL_RESET_ON_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MMC_CNTRL_COUNTER_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MMC_CNTRL_PRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MMC_CNTRL_FULL_HALF_PRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%rdi), %esi
	callq	_stmmac_mmc_intr_all_mask
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	orl	%r15d, %r14d
	orl	%r12d, %r14d
	orl	%r13d, %r14d
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stmmac_mmc_ctrl
	addq	$4, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_info                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CNTRL_RESET_ON_READ,4,2    ## @MMC_CNTRL_RESET_ON_READ
	.comm	_MMC_CNTRL_COUNTER_RESET,4,2    ## @MMC_CNTRL_COUNTER_RESET
	.comm	_MMC_CNTRL_PRESET,4,2           ## @MMC_CNTRL_PRESET
	.comm	_MMC_CNTRL_FULL_HALF_PRESET,4,2 ## @MMC_CNTRL_FULL_HALF_PRESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No MAC Management Counters available\n"

	.no_dead_strip	_stmmac_mmc_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_mmc_setup
_stmmac_mmc_setup:                      ; @stmmac_mmc_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _MMC_CNTRL_RESET_ON_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_CNTRL_RESET_ON_READ@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _MMC_CNTRL_COUNTER_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_CNTRL_COUNTER_RESET@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MMC_CNTRL_PRESET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMC_CNTRL_PRESET@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
Lloh8:
	ldr	w21, [x9]
Lloh9:
	adrp	x8, _MMC_CNTRL_FULL_HALF_PRESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMC_CNTRL_FULL_HALF_PRESET@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	ldr	w1, [x0, #8]
	bl	_stmmac_mmc_intr_all_mask
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	orr	w8, w22, w20
	orr	w8, w8, w21
	orr	w2, w8, w23
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_stmmac_mmc_ctrl
	add	x0, x19, #4
	mov	w1, #0
	mov	w2, #4
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memset
LBB0_2:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netdev_info
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CNTRL_RESET_ON_READ,4,2    ; @MMC_CNTRL_RESET_ON_READ
	.comm	_MMC_CNTRL_COUNTER_RESET,4,2    ; @MMC_CNTRL_COUNTER_RESET
	.comm	_MMC_CNTRL_PRESET,4,2           ; @MMC_CNTRL_PRESET
	.comm	_MMC_CNTRL_FULL_HALF_PRESET,4,2 ; @MMC_CNTRL_FULL_HALF_PRESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No MAC Management Counters available\n"

	.no_dead_strip	_stmmac_mmc_setup
.subsections_via_symbols
