	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5523_cmd_tx_cb
_ar5523_cmd_tx_cb:                      ## @ar5523_cmd_tx_cb
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rdx
	movq	8(%rdi), %rbx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_ar5523_err
	movq	(%r14), %rax
LBB0_4:
	movq	%rax, 8(%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_2:
	movq	_AR5523_CMD_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to TX command. Status = %d\n"

	.comm	_AR5523_CMD_FLAG_READ,4,2       ## @AR5523_CMD_FLAG_READ
	.no_dead_strip	_ar5523_cmd_tx_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5523_cmd_tx_cb
_ar5523_cmd_tx_cb:                      ; @ar5523_cmd_tx_cb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x2, x20, [x0]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x0, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ar5523_err
	ldr	x8, [x19]
LBB0_2:
	str	x8, [x20, #8]
	add	x0, x20, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_complete
LBB0_3:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _AR5523_CMD_FLAG_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR5523_CMD_FLAG_READ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x8, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to TX command. Status = %d\n"

	.comm	_AR5523_CMD_FLAG_READ,4,2       ; @AR5523_CMD_FLAG_READ
	.no_dead_strip	_ar5523_cmd_tx_cb
.subsections_via_symbols
