	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gelic_descr_set_tx_cmdstat
_gelic_descr_set_tx_cmdstat:            ## @gelic_descr_set_tx_cmdstat
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %r15
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_ip_hdr
	movq	(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	_GELIC_DESCR_DMA_CMD_TCP_CHKSUM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	callq	_ip_hdr
	movq	(%rax), %rax
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.8:
	movq	_GELIC_DESCR_DMA_CMD_UDP_CHKSUM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_GELIC_DESCR_DMA_CMD_NO_CHKSUM@GOTPCREL(%rip), %rax
LBB0_5:
	movq	_GELIC_DESCR_TX_DMA_FRAME_TAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_GELIC_DESCR_DMA_CMD_NO_CHKSUM,4,2 ## @GELIC_DESCR_DMA_CMD_NO_CHKSUM
	.comm	_GELIC_DESCR_TX_DMA_FRAME_TAIL,4,2 ## @GELIC_DESCR_TX_DMA_FRAME_TAIL
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_GELIC_DESCR_DMA_CMD_TCP_CHKSUM,4,2 ## @GELIC_DESCR_DMA_CMD_TCP_CHKSUM
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_GELIC_DESCR_DMA_CMD_UDP_CHKSUM,4,2 ## @GELIC_DESCR_DMA_CMD_UDP_CHKSUM
	.no_dead_strip	_gelic_descr_set_tx_cmdstat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gelic_descr_set_tx_cmdstat
_gelic_descr_set_tx_cmdstat:            ; @gelic_descr_set_tx_cmdstat
	.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	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x21, _GELIC_DESCR_DMA_CMD_NO_CHKSUM@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GELIC_DESCR_DMA_CMD_NO_CHKSUM@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x1
	ldr	x22, [x1, #8]
Lloh5:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_ip_hdr
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x21, _GELIC_DESCR_DMA_CMD_TCP_CHKSUM@GOTPAGE
Lloh12:
	ldr	x21, [x21, _GELIC_DESCR_DMA_CMD_TCP_CHKSUM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_ip_hdr
Lloh13:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x10, _GELIC_DESCR_DMA_CMD_UDP_CHKSUM@GOTPAGE
Lloh17:
	ldr	x10, [x10, _GELIC_DESCR_DMA_CMD_UDP_CHKSUM@GOTPAGEOFF]
	cmp	x9, x8
	csel	x21, x10, x21, eq
LBB0_5:
	ldr	w8, [x21]
Lloh18:
	adrp	x9, _GELIC_DESCR_TX_DMA_FRAME_TAIL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GELIC_DESCR_TX_DMA_FRAME_TAIL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_be32
	str	x0, [x19]
LBB0_6:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_GELIC_DESCR_DMA_CMD_NO_CHKSUM,4,2 ; @GELIC_DESCR_DMA_CMD_NO_CHKSUM
	.comm	_GELIC_DESCR_TX_DMA_FRAME_TAIL,4,2 ; @GELIC_DESCR_TX_DMA_FRAME_TAIL
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_GELIC_DESCR_DMA_CMD_TCP_CHKSUM,4,2 ; @GELIC_DESCR_DMA_CMD_TCP_CHKSUM
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_GELIC_DESCR_DMA_CMD_UDP_CHKSUM,4,2 ; @GELIC_DESCR_DMA_CMD_UDP_CHKSUM
	.no_dead_strip	_gelic_descr_set_tx_cmdstat
.subsections_via_symbols
