	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_process_flags
_qlcnic_process_flags:                  ## @qlcnic_process_flags
	.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
	movq	%rdi, %r14
	movl	(%rdi), %r12d
	movq	_BIT_0@GOTPCREL(%rip), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rax
	orl	%esi, %ebx
	orl	%r15d, %ebx
	orl	(%rax), %ebx
	movl	$1, 4(%r14)
	movq	%r14, %rdi
	callq	_QLCNIC_IS_TSO_CAPABLE
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	_BIT_1@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	orl	%ebx, %edx
	notl	%eax
	andl	%ebx, %eax
	testl	%r12d, (%rcx)
	cmovnel	%edx, %eax
	movq	_BIT_2@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	testl	%r12d, (%rcx)
	je	LBB0_3
## %bb.4:
	orl	%eax, %ebx
	jmp	LBB0_8
LBB0_5:
	orl	%ebx, %r15d
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	notl	%r15d
	andl	%esi, %r15d
	movq	%r14, %rdi
	callq	_QLCNIC_IS_TSO_CAPABLE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r15d
LBB0_7:
	movl	$0, 4(%r14)
	movl	%r15d, %ebx
	jmp	LBB0_8
LBB0_3:
	notl	%ebx
	andl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_0,4,2                      ## @BIT_0
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_BIT_1,4,2                      ## @BIT_1
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_BIT_2,4,2                      ## @BIT_2
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.no_dead_strip	_qlcnic_process_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_process_flags
_qlcnic_process_flags:                  ; @qlcnic_process_flags
	.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	x20, x0
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _BIT_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_0@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _NETIF_F_IP_CSUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w10, w21
	b.eq	LBB0_3
; %bb.1:
Lloh9:
	adrp	x10, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w8, w1
	orr	w8, w8, w9
	orr	w19, w8, w10
	mov	w8, #1
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_QLCNIC_IS_TSO_CAPABLE
	cbz	x0, LBB0_6
; %bb.2:
Lloh12:
	adrp	x8, _BIT_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BIT_1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w10, w9, w19
	bic	w9, w19, w9
	tst	w8, w21
	csel	w8, w9, w10, eq
Lloh18:
	adrp	x9, _BIT_2@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BIT_2@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w21
Lloh21:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w8, w8, w9
	csel	w19, w10, w8, ne
	b	LBB0_6
LBB0_3:
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w19, w1, w8
	mov	x0, x20
	bl	_QLCNIC_IS_TSO_CAPABLE
	cbz	x0, LBB0_5
; %bb.4:
Lloh27:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w19, w19, w8
LBB0_5:
	str	wzr, [x20, #4]
LBB0_6:
	mov	x0, x19
	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	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_0,4,2                      ; @BIT_0
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_BIT_1,4,2                      ; @BIT_1
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_BIT_2,4,2                      ; @BIT_2
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.no_dead_strip	_qlcnic_process_flags
.subsections_via_symbols
