	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc75xx_set_features
_smsc75xx_set_features:                 ## @smsc75xx_set_features
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movq	_RFE_CTL_TCPUDP_CKM@GOTPCREL(%rip), %rdx
	movq	_RFE_CTL_IP_CKM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	testl	%r15d, (%rcx)
	je	LBB0_2
## %bb.1:
	orl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	%eax, (%rbx)
LBB0_3:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_RFE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_smsc75xx_write_reg
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jns	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	movl	%ebx, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_RFE_CTL_TCPUDP_CKM,4,2         ## @RFE_CTL_TCPUDP_CKM
	.comm	_RFE_CTL_IP_CKM,4,2             ## @RFE_CTL_IP_CKM
	.comm	_RFE_CTL,4,2                    ## @RFE_CTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error writing RFE_CTL\n"

	.no_dead_strip	_smsc75xx_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc75xx_set_features
_smsc75xx_set_features:                 ; @smsc75xx_set_features
	.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	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	add	x20, x22, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _RFE_CTL_TCPUDP_CKM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RFE_CTL_TCPUDP_CKM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _RFE_CTL_IP_CKM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RFE_CTL_IP_CKM@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w10, w8
	tst	w9, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x22]
	orr	w8, w8, w9
	b	LBB0_3
LBB0_2:
	ldr	w9, [x22]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x22]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x8, _RFE_CTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RFE_CTL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_smsc75xx_write_reg
	tbnz	w0, #31, LBB0_5
; %bb.4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	x20, x0
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_6:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_RFE_CTL_TCPUDP_CKM,4,2         ; @RFE_CTL_TCPUDP_CKM
	.comm	_RFE_CTL_IP_CKM,4,2             ; @RFE_CTL_IP_CKM
	.comm	_RFE_CTL,4,2                    ; @RFE_CTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error writing RFE_CTL\n"

	.no_dead_strip	_smsc75xx_set_features
.subsections_via_symbols
