	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc75xx_set_rx_max_frame_length
_smsc75xx_set_rx_max_frame_length:      ## @smsc75xx_set_rx_max_frame_length
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MAC_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_smsc75xx_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	-44(%rbp), %r13d
	movq	_MAC_RX_RXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r13d, %eax
	testl	%r13d, %r12d
	je	LBB0_6
## %bb.4:
	movl	%r12d, %edx
	notl	%edx
	andl	%r13d, %edx
	movl	%edx, -44(%rbp)
	movq	_MAC_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smsc75xx_write_reg
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movl	-44(%rbp), %eax
LBB0_6:
	addl	$4, %ebx
	movq	_MAC_RX_MAX_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_MAC_RX_MAX_SIZE@GOTPCREL(%rip), %rcx
	xorl	%eax, %ebx
	andl	(%rcx), %ebx
	xorl	%eax, %ebx
	movl	%ebx, -44(%rbp)
	movq	_MAC_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_smsc75xx_write_reg
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	xorl	%r15d, %r15d
	testl	%r13d, %r12d
	je	LBB0_11
## %bb.9:
	movl	-44(%rbp), %edx
	movq	_MAC_RX_RXEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movq	_MAC_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smsc75xx_write_reg
	testl	%eax, %eax
	jns	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_warn
	movl	%ebx, %r15d
	jmp	LBB0_11
LBB0_1:
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%r15d, %edx
	callq	_netdev_warn
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read MAC_RX: %d\n"

	.comm	_MAC_RX_RXEN,4,2                ## @MAC_RX_RXEN
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write MAC_RX: %d\n"

	.comm	_MAC_RX_MAX_SIZE,4,2            ## @MAC_RX_MAX_SIZE
	.comm	_MAC_RX_MAX_SIZE_SHIFT,4,2      ## @MAC_RX_MAX_SIZE_SHIFT
	.no_dead_strip	_smsc75xx_set_rx_max_frame_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc75xx_set_rx_max_frame_length
_smsc75xx_set_rx_max_frame_length:      ; @smsc75xx_set_rx_max_frame_length
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MAC_RX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC_RX@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_smsc75xx_read_reg
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x23, _MAC_RX_RXEN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAC_RX_RXEN@GOTPAGEOFF]
	ldr	w9, [x23]
	ands	w24, w9, w8
	b.eq	LBB0_4
; %bb.2:
	bic	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc75xx_write_reg
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w8, [sp, #12]
LBB0_4:
Lloh4:
	adrp	x9, _MAC_RX_MAX_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAC_RX_MAX_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	bic	w8, w8, w9
	add	w10, w21, #4
Lloh7:
	adrp	x11, _MAC_RX_MAX_SIZE_SHIFT@GOTPAGE
Lloh8:
	ldr	x11, [x11, _MAC_RX_MAX_SIZE_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	and	w9, w10, w9
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc75xx_write_reg
	tbnz	w0, #31, LBB0_8
; %bb.5:
	cbz	w24, LBB0_7
; %bb.6:
	ldr	w8, [x23]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc75xx_write_reg
	tbnz	w0, #31, LBB0_8
LBB0_7:
	mov	w20, #0
	b	LBB0_11
LBB0_8:
	mov	x20, x0
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x20, x0
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	mov	x2, x20
	bl	_netdev_warn
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_RX,4,2                     ; @MAC_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read MAC_RX: %d\n"

	.comm	_MAC_RX_RXEN,4,2                ; @MAC_RX_RXEN
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write MAC_RX: %d\n"

	.comm	_MAC_RX_MAX_SIZE,4,2            ; @MAC_RX_MAX_SIZE
	.comm	_MAC_RX_MAX_SIZE_SHIFT,4,2      ; @MAC_RX_MAX_SIZE_SHIFT
	.no_dead_strip	_smsc75xx_set_rx_max_frame_length
.subsections_via_symbols
