	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_mac_config
_stmmac_mac_config:                     ## @stmmac_mac_config
	.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	%rdx, %r14
	movl	(%rdi), %edi
	callq	_to_net_dev
	movl	%eax, %edi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_MAC_CTRL_REG@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	8(%r15), %rax
	movl	32(%rax), %ecx
	movq	(%r14), %rsi
	movq	_PHY_INTERFACE_MODE_USXGMII@GOTPCREL(%rip), %rdi
	movl	24(%r14), %edx
	cmpq	(%rdi), %rsi
	jne	LBB0_7
## %bb.1:
	cmpl	$128, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %edx
	je	LBB0_6
## %bb.3:
	cmpl	$130, %edx
	jne	LBB0_18
## %bb.4:
	addq	$28, %rax
	movl	$130, %esi
	jmp	LBB0_13
LBB0_7:
	addl	$-129, %edx
	cmpl	$4, %edx
	ja	LBB0_18
## %bb.8:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_9:
	addq	$16, %rax
	movl	$129, %esi
	jmp	LBB0_13
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	addq	$24, %rax
	movl	$128, %esi
	jmp	LBB0_13
LBB0_6:
	addq	$20, %rax
	movl	$129, %esi
	jmp	LBB0_13
LBB0_10:
	addq	$12, %rax
	movl	$131, %esi
	jmp	LBB0_13
LBB0_11:
	addq	$8, %rax
	movl	$132, %esi
	jmp	LBB0_13
LBB0_12:
	addq	$4, %rax
	movl	$133, %esi
LBB0_13:
	notl	%ecx
	andl	%ecx, %r12d
	orl	(%rax), %r12d
	movl	%esi, 24(%r15)
	movq	16(%r15), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	(%rcx), %edi
	callq	*%rax
LBB0_15:
	movl	8(%r14), %esi
	movq	8(%r15), %rax
	movl	(%rax), %ebx
	movl	%ebx, %eax
	orl	%r12d, %eax
	notl	%ebx
	andl	%r12d, %ebx
	testl	%esi, %esi
	cmovnel	%eax, %ebx
	cmpq	$0, 16(%r14)
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_stmmac_mac_flow_ctrl
LBB0_17:
	movq	(%r13), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_18
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_MAC_CTRL_REG,8,3               ## @MAC_CTRL_REG
	.comm	_PHY_INTERFACE_MODE_USXGMII,8,3 ## @PHY_INTERFACE_MODE_USXGMII
	.no_dead_strip	_stmmac_mac_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_mac_config
_stmmac_mac_config:                     ; @stmmac_mac_config
	.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, x2
	ldr	w0, [x0]
	bl	_to_net_dev
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _MAC_CTRL_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC_CTRL_REG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	x9, [x20, #8]
	ldr	w8, [x9, #32]
	ldr	x11, [x19]
Lloh2:
	adrp	x10, _PHY_INTERFACE_MODE_USXGMII@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_USXGMII@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x10]
	ldr	w10, [x19, #24]
	cmp	x11, x12
	b.ne	LBB0_5
; %bb.1:
	cmp	w10, #128
	b.eq	LBB0_9
; %bb.2:
	cmp	w10, #129
	b.eq	LBB0_10
; %bb.3:
	cmp	w10, #130
	b.ne	LBB0_8
; %bb.4:
	add	x9, x9, #28
	mov	w1, #130
	b	LBB0_14
LBB0_5:
	sub	w10, w10, #129
	cmp	w10, #4
	b.hi	LBB0_8
; %bb.6:
Lloh5:
	adrp	x11, lJTI0_0@PAGE
Lloh6:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_7
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_7:
	add	x9, x9, #16
	mov	w1, #129
	b	LBB0_14
LBB0_8:
	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
LBB0_9:
	add	x9, x9, #24
	mov	w1, #128
	b	LBB0_14
LBB0_10:
	add	x9, x9, #20
	mov	w1, #129
	b	LBB0_14
LBB0_11:
	add	x9, x9, #12
	mov	w1, #131
	b	LBB0_14
LBB0_12:
	add	x9, x9, #8
	mov	w1, #132
	b	LBB0_14
LBB0_13:
	add	x9, x9, #4
	mov	w1, #133
LBB0_14:
	bic	w8, w0, w8
	ldr	w9, [x9]
	orr	w21, w9, w8
	str	w1, [x20, #24]
	ldr	x9, [x20, #16]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w0, [x9]
	blr	x8
LBB0_16:
	ldr	w1, [x19, #8]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	orr	w9, w8, w21
	bic	w8, w21, w8
	cmp	w1, #0
	csel	w21, w8, w9, eq
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_stmmac_mac_flow_ctrl
LBB0_18:
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x21
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
                                        ; -- End function
	.comm	_MAC_CTRL_REG,8,3               ; @MAC_CTRL_REG
	.comm	_PHY_INTERFACE_MODE_USXGMII,8,3 ; @PHY_INTERFACE_MODE_USXGMII
	.no_dead_strip	_stmmac_mac_config
.subsections_via_symbols
