	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transmit_802_11_packet
_transmit_802_11_packet:                ## @transmit_802_11_packet
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	sarl	$16, %r14d
	movl	(%rdx), %edi
	callq	_header_len
	movl	%r14d, %ebx
	subl	%eax, %ebx
	jge	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_airo_print_warn
	jmp	LBB0_3
LBB0_2:
	movl	%eax, %r13d
	movq	_BAP1@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$6, %edx
	callq	_bap_setup
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movl	%eax, -52(%rbp)
	movl	(%r14), %ecx
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_bap_write
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$20, %edx
	callq	_bap_setup
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_bap_write
	leaq	_transmit_802_11_packet.tail(%rip), %rax
	movslq	%r13d, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx,4), %rsi
	addq	$-40, %rsi
	movl	$38, %edx
	subl	%r13d, %edx
	movl	(%r14), %ecx
	movq	%r12, %rdi
	callq	_bap_write
	addq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_bap_write
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_CMD_TRANSMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_issuecommand
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.6:
	cmpb	$0, -47(%rbp)
	je	LBB0_7
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @transmit_802_11_packet.tail
_transmit_802_11_packet.tail:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	6                               ## 0x6
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Short packet %d"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_BAP1,4,2                       ## @BAP1
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_CMD_TRANSMIT,4,2               ## @CMD_TRANSMIT
	.no_dead_strip	_transmit_802_11_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transmit_802_11_packet
_transmit_802_11_packet:                ; @transmit_802_11_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	asr	w24, w1, #16
	ldr	w0, [x2]
	bl	_header_len
	subs	w22, w24, w0
	b.ge	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_airo_print_warn
	b	LBB0_6
LBB0_2:
	mov	x23, x0
Lloh2:
	adrp	x25, _BAP1@GOTPAGE
Lloh3:
	ldr	x25, [x25, _BAP1@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #6
	bl	_bap_setup
Lloh4:
	adrp	x24, _SUCCESS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_cpu_to_le16
	str	w0, [sp, #28]
	ldr	w3, [x25]
	add	x1, sp, #28
	mov	x0, x19
	mov	w2, #4
	bl	_bap_write
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #20
	bl	_bap_setup
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_bap_write
Lloh6:
	adrp	x8, _transmit_802_11_packet.tail@PAGE
Lloh7:
	add	x8, x8, _transmit_802_11_packet.tail@PAGEOFF
	add	x8, x8, w23, sxtw #2
	sub	x1, x8, #40
	mov	w8, #38
	sub	w2, w8, w23
	ldr	w3, [x25]
	mov	x0, x19
	bl	_bap_write
	add	x1, x21, w23, sxtw
	ldr	w3, [x25]
	mov	x0, x19
	mov	x2, x22
	bl	_bap_write
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh8:
	adrp	x8, _CMD_TRANSMIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_TRANSMIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w20, w8, [sp, #16]
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_issuecommand
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	ldrb	w8, [sp, #9]
	cbz	w8, LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @transmit_802_11_packet.tail
_transmit_802_11_packet.tail:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	6                               ; 0x6
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Short packet %d"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_BAP1,4,2                       ; @BAP1
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_CMD_TRANSMIT,4,2               ; @CMD_TRANSMIT
	.no_dead_strip	_transmit_802_11_packet
.subsections_via_symbols
