	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_mac_set_mtu
_lan743x_mac_set_mtu:                   ## @lan743x_mac_set_mtu
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_MAC_RX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_lan743x_csr_read
	movl	%eax, %r14d
	movq	_MAC_RX_RXEN_@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r13d
	testl	%eax, %r13d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	_MAC_RX_RXD_@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_3
## %bb.4:
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movq	%rcx, %r13
	callq	_lan743x_csr_write
	movl	(%r13), %eax
	movq	%r13, %rcx
	notl	%eax
	andl	%r14d, %eax
	movl	(%rbx), %r13d
	jmp	LBB0_5
LBB0_1:
	movl	%r14d, %r13d
	jmp	LBB0_6
LBB0_3:
	movl	%r14d, %eax
LBB0_5:
	movq	%rcx, %rbx
	notl	%r13d
	andl	%eax, %r13d
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_lan743x_csr_write
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movl	$100, (%rsp)
	movq	%r12, %rdi
	movl	$1, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	movl	$20000, %r9d                    ## imm = 0x4E20
	callq	_lan743x_csr_wait_for_bit
	movl	(%r15), %esi
	movl	(%rbx), %edx
	orl	%r13d, %edx
	movq	%r12, %rdi
	callq	_lan743x_csr_write
LBB0_6:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_MAC_RX_MAX_SIZE_MASK_@GOTPCREL(%rip), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rdx,%rcx), %ebx
	addl	$4, %ebx
	movq	_MAC_RX_MAX_SIZE_SHIFT_@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	xorl	%r13d, %ebx
	andl	(%rax), %ebx
	xorl	%r13d, %ebx
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_lan743x_csr_write
	testl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movq	_MAC_RX_RXEN_@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_lan743x_csr_write
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_RX,4,2                     ## @MAC_RX
	.comm	_MAC_RX_RXEN_,4,2               ## @MAC_RX_RXEN_
	.comm	_MAC_RX_RXD_,4,2                ## @MAC_RX_RXD_
	.comm	_MAC_RX_MAX_SIZE_MASK_,4,2      ## @MAC_RX_MAX_SIZE_MASK_
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_MAC_RX_MAX_SIZE_SHIFT_,4,2     ## @MAC_RX_MAX_SIZE_SHIFT_
	.no_dead_strip	_lan743x_mac_set_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_mac_set_mtu
_lan743x_mac_set_mtu:                   ; @lan743x_mac_set_mtu
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MAC_RX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC_RX@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_lan743x_csr_read
	mov	x21, x0
Lloh2:
	adrp	x23, _MAC_RX_RXEN_@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAC_RX_RXEN_@GOTPAGEOFF]
	ldr	w8, [x23]
	ands	w24, w8, w0
	b.eq	LBB0_4
; %bb.1:
Lloh4:
	adrp	x25, _MAC_RX_RXD_@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MAC_RX_RXD_@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_lan743x_csr_write
	ldr	w8, [x25]
	bic	w21, w21, w8
	ldr	w8, [x23]
LBB0_3:
	bic	w21, w21, w8
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_lan743x_csr_write
	ldr	w1, [x22]
	ldr	w2, [x25]
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1000
	mov	w5, #20000
	mov	w6, #100
	bl	_lan743x_csr_wait_for_bit
	ldr	w1, [x22]
	ldr	w8, [x25]
	orr	w2, w8, w21
	mov	x0, x19
	bl	_lan743x_csr_write
LBB0_4:
Lloh6:
	adrp	x8, _MAC_RX_MAX_SIZE_MASK_@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_RX_MAX_SIZE_MASK_@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w9, w21, w8
Lloh9:
	adrp	x10, _ETH_HLEN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ETH_HLEN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	add	w10, w20, w10
Lloh12:
	adrp	x11, _MAC_RX_MAX_SIZE_SHIFT_@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MAC_RX_MAX_SIZE_SHIFT_@GOTPAGEOFF]
	add	w10, w10, #4
Lloh14:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	and	w8, w10, w8
	orr	w20, w8, w9
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_lan743x_csr_write
	cbz	w24, LBB0_6
; %bb.5:
	ldr	w8, [x23]
	orr	w2, w8, w20
	ldr	w1, [x22]
	mov	x0, x19
	bl	_lan743x_csr_write
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_RX,4,2                     ; @MAC_RX
	.comm	_MAC_RX_RXEN_,4,2               ; @MAC_RX_RXEN_
	.comm	_MAC_RX_RXD_,4,2                ; @MAC_RX_RXD_
	.comm	_MAC_RX_MAX_SIZE_MASK_,4,2      ; @MAC_RX_MAX_SIZE_MASK_
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_MAC_RX_MAX_SIZE_SHIFT_,4,2     ; @MAC_RX_MAX_SIZE_SHIFT_
	.no_dead_strip	_lan743x_mac_set_mtu
.subsections_via_symbols
