	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_set_csums
_smsc95xx_set_csums:                    ## @smsc95xx_set_csums
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	_COE_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	callq	_smsc95xx_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	cmpq	$0, 8(%r12)
	movq	_Tx_COE_EN_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_5
## %bb.4:
	orl	-36(%rbp), %eax
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	notl	%eax
	andl	-36(%rbp), %eax
LBB0_6:
	movq	_Rx_COE_EN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %edx
	cmpq	$0, (%r12)
	cmovel	%ecx, %edx
	movl	%edx, -36(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_smsc95xx_write_reg
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_netif_msg_hw
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devdbg
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_devwarn
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COE_CR,4,2                     ## @COE_CR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read COE_CR: %d"

	.comm	_Tx_COE_EN_,4,2                 ## @Tx_COE_EN_
	.comm	_Rx_COE_EN_,4,2                 ## @Rx_COE_EN_
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write COE_CR: %d"

L_.str.2:                               ## @.str.2
	.asciz	"COE_CR = 0x%08x"

	.no_dead_strip	_smsc95xx_set_csums
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_set_csums
_smsc95xx_set_csums:                    ; @smsc95xx_set_csums
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
Lloh0:
	adrp	x21, _COE_CR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _COE_CR@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_smsc95xx_read_reg
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x9, [x22, #8]
Lloh2:
	adrp	x8, _Tx_COE_EN_@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Tx_COE_EN_@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_3:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_4:
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
LBB0_5:
	ldr	x9, [x22]
Lloh7:
	adrp	x10, _Rx_COE_EN_@GOTPAGE
Lloh8:
	ldr	x10, [x10, _Rx_COE_EN_@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	bic	w11, w8, w10
	orr	w8, w10, w8
	cmp	x9, #0
	csel	w2, w11, w8, eq
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_netif_msg_hw
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w2, [sp, #12]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devdbg
LBB0_8:
	mov	w20, #0
	b	LBB0_11
LBB0_9:
	mov	x20, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x19
	mov	x2, x20
	bl	_devwarn
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_COE_CR,4,2                     ; @COE_CR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read COE_CR: %d"

	.comm	_Tx_COE_EN_,4,2                 ; @Tx_COE_EN_
	.comm	_Rx_COE_EN_,4,2                 ; @Rx_COE_EN_
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write COE_CR: %d"

l_.str.2:                               ; @.str.2
	.asciz	"COE_CR = 0x%08x"

	.no_dead_strip	_smsc95xx_set_csums
.subsections_via_symbols
