	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_update_descriptor
_tx_update_descriptor:                  ## @tx_update_descriptor
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_TX_DESC_POS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rdi), %rdx
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_atmel_wmem16
	movq	_TX_DESC_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_atmel_wmem16
	cmpq	$0, 48(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_TX_DESC_HOST_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_atmel_wmem16
LBB0_2:
	movq	_TX_DESC_PACKET_TYPE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_atmel_wmem8
	movq	_TX_DESC_RATE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atmel_wmem8
	movq	_TX_DESC_RETRY_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atmel_wmem8
	cmpq	$0, 48(%rbx)
	je	LBB0_16
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.4:
	movl	12(%rbx), %r15d
	movq	_CIPHER_SUITE_WEP_64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$8, %r12d
	cmpl	%eax, %r15d
	je	LBB0_15
## %bb.5:
	movq	_CIPHER_SUITE_WEP_128@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %r15d
	je	LBB0_15
## %bb.6:
	movq	_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rdx
	movl	$12, %r12d
	cmpl	(%rdx), %r15d
	je	LBB0_15
## %bb.7:
	movl	16(%rbx), %r15d
	jmp	LBB0_12
LBB0_8:
	movl	16(%rbx), %r15d
	movq	_CIPHER_SUITE_WEP_64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$8, %r12d
	cmpl	%eax, %r15d
	je	LBB0_15
## %bb.9:
	movq	_CIPHER_SUITE_WEP_128@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %r15d
	je	LBB0_15
## %bb.10:
	movq	_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rdx
	movl	$12, %r12d
	cmpl	(%rdx), %r15d
	je	LBB0_15
## %bb.11:
	movl	12(%rbx), %r15d
LBB0_12:
	cmpl	%eax, %r15d
	sete	%dl
	cmpl	%ecx, %r15d
	sete	%al
	orb	%dl, %al
	jne	LBB0_14
## %bb.13:
	movq	_CIPHER_SUITE_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_14:
	movzbl	%al, %r12d
	shll	$3, %r12d
LBB0_15:
	movq	_TX_DESC_CIPHER_TYPE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_atmel_wmem8
	movq	_TX_DESC_CIPHER_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_atmel_wmem8
LBB0_16:
	movq	_TX_DESC_NEXT_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_atmel_wmem32
	movq	_TX_DESC_FLAGS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	_TX_FIRM_OWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atmel_wmem8
	movq	24(%rbx), %rdx
	cmpq	(%rbx), %rdx
	je	LBB0_18
## %bb.17:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atmel_wmem32
	movq	(%rbx), %rdx
LBB0_18:
	movq	%rdx, 24(%rbx)
	movslq	40(%rbx), %rax
	decq	%rax
	leaq	1(%rdx), %rcx
	xorl	%esi, %esi
	cmpq	%rax, %rdx
	cmovlq	%rcx, %rsi
	movq	%rsi, (%rbx)
	decl	36(%rbx)
	subl	%r14d, 32(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_DESC_POS_OFFSET,4,2         ## @TX_DESC_POS_OFFSET
	.comm	_TX_DESC_SIZE_OFFSET,4,2        ## @TX_DESC_SIZE_OFFSET
	.comm	_TX_DESC_HOST_LENGTH_OFFSET,4,2 ## @TX_DESC_HOST_LENGTH_OFFSET
	.comm	_TX_DESC_PACKET_TYPE_OFFSET,4,2 ## @TX_DESC_PACKET_TYPE_OFFSET
	.comm	_TX_DESC_RATE_OFFSET,4,2        ## @TX_DESC_RATE_OFFSET
	.comm	_TX_DESC_RETRY_OFFSET,4,2       ## @TX_DESC_RETRY_OFFSET
	.comm	_CIPHER_SUITE_WEP_64,4,2        ## @CIPHER_SUITE_WEP_64
	.comm	_CIPHER_SUITE_WEP_128,4,2       ## @CIPHER_SUITE_WEP_128
	.comm	_CIPHER_SUITE_TKIP,4,2          ## @CIPHER_SUITE_TKIP
	.comm	_CIPHER_SUITE_NONE,4,2          ## @CIPHER_SUITE_NONE
	.comm	_TX_DESC_CIPHER_TYPE_OFFSET,4,2 ## @TX_DESC_CIPHER_TYPE_OFFSET
	.comm	_TX_DESC_CIPHER_LENGTH_OFFSET,4,2 ## @TX_DESC_CIPHER_LENGTH_OFFSET
	.comm	_TX_DESC_NEXT_OFFSET,4,2        ## @TX_DESC_NEXT_OFFSET
	.comm	_TX_DESC_FLAGS_OFFSET,4,2       ## @TX_DESC_FLAGS_OFFSET
	.comm	_TX_FIRM_OWN,4,2                ## @TX_FIRM_OWN
	.no_dead_strip	_tx_update_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_update_descriptor
_tx_update_descriptor:                  ; @tx_update_descriptor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x8, _TX_DESC_POS_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_DESC_POS_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_atmel_wmem16
Lloh3:
	adrp	x8, _TX_DESC_SIZE_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_DESC_SIZE_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_atmel_wmem16
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _TX_DESC_HOST_LENGTH_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_DESC_HOST_LENGTH_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_atmel_wmem16
LBB0_2:
Lloh9:
	adrp	x8, _TX_DESC_PACKET_TYPE_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TX_DESC_PACKET_TYPE_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_atmel_wmem8
Lloh12:
	adrp	x8, _TX_DESC_RATE_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_DESC_RATE_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_atmel_wmem8
Lloh15:
	adrp	x8, _TX_DESC_RETRY_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TX_DESC_RETRY_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_atmel_wmem8
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_12
; %bb.3:
	cbz	w21, LBB0_8
; %bb.4:
	ldr	w21, [x19, #12]
Lloh18:
	adrp	x8, _CIPHER_SUITE_WEP_64@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CIPHER_SUITE_WEP_64@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_10
; %bb.5:
Lloh21:
	adrp	x9, _CIPHER_SUITE_WEP_128@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CIPHER_SUITE_WEP_128@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w21, w9
	b.eq	LBB0_10
; %bb.6:
Lloh24:
	adrp	x10, _CIPHER_SUITE_TKIP@GOTPAGE
Lloh25:
	ldr	x10, [x10, _CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	cmp	w21, w10
	b.eq	LBB0_16
; %bb.7:
	ldr	w10, [x19, #16]
	b	LBB0_18
LBB0_8:
	ldr	w21, [x19, #16]
Lloh27:
	adrp	x8, _CIPHER_SUITE_WEP_64@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CIPHER_SUITE_WEP_64@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_10
; %bb.9:
Lloh30:
	adrp	x9, _CIPHER_SUITE_WEP_128@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CIPHER_SUITE_WEP_128@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w21, w9
	b.ne	LBB0_15
LBB0_10:
	mov	w22, #8
LBB0_11:
Lloh33:
	adrp	x8, _TX_DESC_CIPHER_TYPE_OFFSET@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TX_DESC_CIPHER_TYPE_OFFSET@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_atmel_wmem8
Lloh36:
	adrp	x8, _TX_DESC_CIPHER_LENGTH_OFFSET@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TX_DESC_CIPHER_LENGTH_OFFSET@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_atmel_wmem8
LBB0_12:
Lloh39:
	adrp	x21, _TX_DESC_NEXT_OFFSET@GOTPAGE
Lloh40:
	ldr	x21, [x21, _TX_DESC_NEXT_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-2147483648
	bl	_atmel_wmem32
Lloh41:
	adrp	x8, _TX_DESC_FLAGS_OFFSET@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TX_DESC_FLAGS_OFFSET@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
Lloh44:
	adrp	x8, _TX_FIRM_OWN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TX_FIRM_OWN@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_atmel_wmem8
	ldr	x2, [x19, #24]
	ldr	x8, [x19]
	cmp	x2, x8
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_atmel_wmem32
	ldr	x2, [x19]
LBB0_14:
	str	x2, [x19, #24]
	ldrsw	x8, [x19, #40]
	sub	x8, x8, #1
	cmp	x2, x8
	csinc	x8, xzr, x2, ge
	str	x8, [x19]
	ldr	d0, [x19, #32]
	movi.2d	v1, #0xffffffffffffffff
	mov.s	v1[0], w20
	movi.2d	v2, #0xffffffffffffffff
	sub.2s	v1, v0, v1
	add.2s	v0, v0, v2
	mov.s	v1[1], v0[1]
	str	d1, [x19, #32]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh47:
	adrp	x10, _CIPHER_SUITE_TKIP@GOTPAGE
Lloh48:
	ldr	x10, [x10, _CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
	cmp	w21, w10
	b.ne	LBB0_17
LBB0_16:
	mov	w22, #12
	b	LBB0_11
LBB0_17:
	ldr	w10, [x19, #12]
LBB0_18:
	cmp	w10, w8
	ccmp	w10, w9, #4, ne
Lloh50:
	adrp	x8, _CIPHER_SUITE_NONE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _CIPHER_SUITE_NONE@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	csel	w21, w10, w8, eq
	mov	w8, #8
	csel	w22, w8, wzr, eq
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_DESC_POS_OFFSET,4,2         ; @TX_DESC_POS_OFFSET
	.comm	_TX_DESC_SIZE_OFFSET,4,2        ; @TX_DESC_SIZE_OFFSET
	.comm	_TX_DESC_HOST_LENGTH_OFFSET,4,2 ; @TX_DESC_HOST_LENGTH_OFFSET
	.comm	_TX_DESC_PACKET_TYPE_OFFSET,4,2 ; @TX_DESC_PACKET_TYPE_OFFSET
	.comm	_TX_DESC_RATE_OFFSET,4,2        ; @TX_DESC_RATE_OFFSET
	.comm	_TX_DESC_RETRY_OFFSET,4,2       ; @TX_DESC_RETRY_OFFSET
	.comm	_CIPHER_SUITE_WEP_64,4,2        ; @CIPHER_SUITE_WEP_64
	.comm	_CIPHER_SUITE_WEP_128,4,2       ; @CIPHER_SUITE_WEP_128
	.comm	_CIPHER_SUITE_TKIP,4,2          ; @CIPHER_SUITE_TKIP
	.comm	_CIPHER_SUITE_NONE,4,2          ; @CIPHER_SUITE_NONE
	.comm	_TX_DESC_CIPHER_TYPE_OFFSET,4,2 ; @TX_DESC_CIPHER_TYPE_OFFSET
	.comm	_TX_DESC_CIPHER_LENGTH_OFFSET,4,2 ; @TX_DESC_CIPHER_LENGTH_OFFSET
	.comm	_TX_DESC_NEXT_OFFSET,4,2        ; @TX_DESC_NEXT_OFFSET
	.comm	_TX_DESC_FLAGS_OFFSET,4,2       ; @TX_DESC_FLAGS_OFFSET
	.comm	_TX_FIRM_OWN,4,2                ; @TX_FIRM_OWN
	.no_dead_strip	_tx_update_descriptor
.subsections_via_symbols
