	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqc111_configure_csum_offload
_aqc111_configure_csum_offload:         ## @aqc111_configure_csum_offload
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	movq	(%rdi), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_SFR_RXCOE_IP@GOTPCREL(%rip), %rax
	movq	_SFR_RXCOE_TCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SFR_RXCOE_UDP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SFR_RXCOE_TCPV6@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SFR_RXCOE_UDPV6@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -20(%rbp)
LBB0_2:
	movq	_AQ_ACCESS_MAC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_SFR_RXCOE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %r9
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_aqc111_write_cmd
	movl	$0, -20(%rbp)
	movq	(%rbx), %rdx
	movl	(%rdx), %ecx
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_SFR_TXCOE_IP@GOTPCREL(%rip), %rcx
	movq	_SFR_TXCOE_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_SFR_TXCOE_UDP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -20(%rbp)
	movl	(%rdx), %ecx
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_SFR_TXCOE_TCPV6@GOTPCREL(%rip), %rcx
	movq	_SFR_TXCOE_UDPV6@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, -20(%rbp)
LBB0_7:
	movl	(%r14), %esi
	movq	_SFR_TXCOE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %r9
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_aqc111_write_cmd
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_SFR_RXCOE_IP,4,2               ## @SFR_RXCOE_IP
	.comm	_SFR_RXCOE_TCP,4,2              ## @SFR_RXCOE_TCP
	.comm	_SFR_RXCOE_UDP,4,2              ## @SFR_RXCOE_UDP
	.comm	_SFR_RXCOE_TCPV6,4,2            ## @SFR_RXCOE_TCPV6
	.comm	_SFR_RXCOE_UDPV6,4,2            ## @SFR_RXCOE_UDPV6
	.comm	_AQ_ACCESS_MAC,4,2              ## @AQ_ACCESS_MAC
	.comm	_SFR_RXCOE_CTL,4,2              ## @SFR_RXCOE_CTL
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_SFR_TXCOE_IP,4,2               ## @SFR_TXCOE_IP
	.comm	_SFR_TXCOE_TCP,4,2              ## @SFR_TXCOE_TCP
	.comm	_SFR_TXCOE_UDP,4,2              ## @SFR_TXCOE_UDP
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_SFR_TXCOE_TCPV6,4,2            ## @SFR_TXCOE_TCPV6
	.comm	_SFR_TXCOE_UDPV6,4,2            ## @SFR_TXCOE_UDPV6
	.comm	_SFR_TXCOE_CTL,4,2              ## @SFR_TXCOE_CTL
	.no_dead_strip	_aqc111_configure_csum_offload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqc111_configure_csum_offload
_aqc111_configure_csum_offload:         ; @aqc111_configure_csum_offload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SFR_RXCOE_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SFR_RXCOE_IP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SFR_RXCOE_TCP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SFR_RXCOE_TCP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _SFR_RXCOE_UDP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SFR_RXCOE_UDP@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _SFR_RXCOE_TCPV6@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SFR_RXCOE_TCPV6@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _SFR_RXCOE_UDPV6@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SFR_RXCOE_UDPV6@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #12]
LBB0_2:
Lloh18:
	adrp	x20, _AQ_ACCESS_MAC@GOTPAGE
Lloh19:
	ldr	x20, [x20, _AQ_ACCESS_MAC@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _SFR_RXCOE_CTL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SFR_RXCOE_CTL@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x5, sp, #12
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_aqc111_write_cmd
	str	wzr, [sp, #12]
	ldr	x10, [x19]
	ldr	w9, [x10]
Lloh23:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_4
; %bb.3:
Lloh26:
	adrp	x8, _SFR_TXCOE_IP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SFR_TXCOE_IP@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _SFR_TXCOE_TCP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SFR_TXCOE_TCP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _SFR_TXCOE_UDP@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SFR_TXCOE_UDP@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #12]
	ldr	w9, [x10]
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
Lloh35:
	adrp	x10, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh36:
	ldr	x10, [x10, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
Lloh38:
	adrp	x9, _SFR_TXCOE_TCPV6@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SFR_TXCOE_TCPV6@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
Lloh41:
	adrp	x10, _SFR_TXCOE_UDPV6@GOTPAGE
Lloh42:
	ldr	x10, [x10, _SFR_TXCOE_UDPV6@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_7:
	ldr	w1, [x20]
Lloh44:
	adrp	x8, _SFR_TXCOE_CTL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SFR_TXCOE_CTL@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	add	x5, sp, #12
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_aqc111_write_cmd
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_SFR_RXCOE_IP,4,2               ; @SFR_RXCOE_IP
	.comm	_SFR_RXCOE_TCP,4,2              ; @SFR_RXCOE_TCP
	.comm	_SFR_RXCOE_UDP,4,2              ; @SFR_RXCOE_UDP
	.comm	_SFR_RXCOE_TCPV6,4,2            ; @SFR_RXCOE_TCPV6
	.comm	_SFR_RXCOE_UDPV6,4,2            ; @SFR_RXCOE_UDPV6
	.comm	_AQ_ACCESS_MAC,4,2              ; @AQ_ACCESS_MAC
	.comm	_SFR_RXCOE_CTL,4,2              ; @SFR_RXCOE_CTL
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_SFR_TXCOE_IP,4,2               ; @SFR_TXCOE_IP
	.comm	_SFR_TXCOE_TCP,4,2              ; @SFR_TXCOE_TCP
	.comm	_SFR_TXCOE_UDP,4,2              ; @SFR_TXCOE_UDP
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_SFR_TXCOE_TCPV6,4,2            ; @SFR_TXCOE_TCPV6
	.comm	_SFR_TXCOE_UDPV6,4,2            ; @SFR_TXCOE_UDPV6
	.comm	_SFR_TXCOE_CTL,4,2              ; @SFR_TXCOE_CTL
	.no_dead_strip	_aqc111_configure_csum_offload
.subsections_via_symbols
