	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_transmit_management_frame
_atmel_transmit_management_frame:       ## @atmel_transmit_management_frame
	.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	%ecx, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_MGMT_FRAME_BODY_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%ecx, %ebx
	movl	%ebx, %esi
	callq	_find_tx_buff
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	4(%r14), %edi
	movq	_MGMT_FRAME_BODY_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_atmel_copy_to_card
	movl	4(%r14), %edi
	movq	_MGMT_FRAME_BODY_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_atmel_copy_to_card
	addl	%ebx, (%r14)
	movq	(%r15), %rax
	movl	(%rax), %esi
	andl	$1, %esi
	movq	_TX_PACKET_TYPE_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %edx
	movq	%r12, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tx_update_descriptor           ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MGMT_FRAME_BODY_OFFSET,4,2     ## @MGMT_FRAME_BODY_OFFSET
	.comm	_TX_PACKET_TYPE_MGMT,4,2        ## @TX_PACKET_TYPE_MGMT
	.no_dead_strip	_atmel_transmit_management_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_transmit_management_frame
_atmel_transmit_management_frame:       ; @atmel_transmit_management_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _MGMT_FRAME_BODY_OFFSET@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MGMT_FRAME_BODY_OFFSET@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w20, w8, w3
	mov	x1, x20
	bl	_find_tx_buff
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	w0, [x19, #4]
	ldr	w3, [x25]
	mov	x1, x22
	mov	x2, x21
	bl	_atmel_copy_to_card
	ldr	w0, [x19, #4]
	ldrsw	x8, [x25]
	add	x1, x22, x8
	mov	x2, x24
	mov	x3, x23
	bl	_atmel_copy_to_card
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	ldr	x8, [x21]
	ldr	w8, [x8]
	and	w1, w8, #0x1
Lloh2:
	adrp	x8, _TX_PACKET_TYPE_MGMT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TX_PACKET_TYPE_MGMT@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_tx_update_descriptor
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MGMT_FRAME_BODY_OFFSET,4,2     ; @MGMT_FRAME_BODY_OFFSET
	.comm	_TX_PACKET_TYPE_MGMT,4,2        ; @TX_PACKET_TYPE_MGMT
	.no_dead_strip	_atmel_transmit_management_frame
.subsections_via_symbols
