	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tx_error
_get_tx_error:                          ## @get_tx_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %rax
	movzwl	(%rax,%rsi,4), %esi
	movq	_BAP0@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	$4, %edx
	callq	_bap_setup
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movl	(%r14), %ecx
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_bap_read
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	testb	$2, %al
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	incl	8(%rax)
LBB0_3:
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	testb	$4, %al
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rax
	incl	4(%rax)
LBB0_5:
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	testb	$16, %al
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	incl	(%rax)
LBB0_7:
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	testb	$2, %al
	jne	LBB0_9
## %bb.8:
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	testb	$4, %al
	je	LBB0_10
LBB0_9:
	movl	(%r14), %ecx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$24, %edx
	callq	_bap_read
	movl	-60(%rbp), %edi
	leaq	-30(%rbp), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	8(%rbx), %rdi
	movq	_IWEVTXDROP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_wireless_send_event
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BAP0,4,2                       ## @BAP0
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ARPHRD_ETHER,4,2               ## @ARPHRD_ETHER
	.comm	_IWEVTXDROP,4,2                 ## @IWEVTXDROP
	.no_dead_strip	_get_tx_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tx_error
_get_tx_error:                          ; @get_tx_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x0]
	lsl	x9, x1, #2
	ldrh	w1, [x8, x9]
Lloh3:
	adrp	x20, _BAP0@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BAP0@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	w2, #4
	bl	_bap_setup
Lloh5:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	ldr	w3, [x20]
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #2
	bl	_bap_read
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	tbz	w0, #1, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
LBB0_3:
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	tbz	w0, #2, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	tbz	w0, #4, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_7:
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	tbnz	w0, #1, LBB0_9
; %bb.8:
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	tbz	w0, #2, LBB0_10
LBB0_9:
	ldr	w3, [x20]
	add	x20, sp, #16
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #24
	bl	_bap_read
	ldr	w0, [sp, #4]
	add	x1, x20, #18
Lloh8:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_memcpy
Lloh11:
	adrp	x8, _ARPHRD_ETHER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x8, _IWEVTXDROP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IWEVTXDROP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x3, #0
	bl	_wireless_send_event
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BAP0,4,2                       ; @BAP0
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ARPHRD_ETHER,4,2               ; @ARPHRD_ETHER
	.comm	_IWEVTXDROP,4,2                 ; @IWEVTXDROP
	.no_dead_strip	_get_tx_error
.subsections_via_symbols
