	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_tx_callback_unregister  ## -- Begin function hostap_tx_callback_unregister
	.p2align	4, 0x90
_hostap_tx_callback_unregister:         ## @hostap_tx_callback_unregister
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_spin_lock_irqsave
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	xorl	%r14d, %r14d
	cmpq	%rbx, (%rdi)
	jne	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, (%rdi)
	jne	LBB0_5
LBB0_3:
	leaq	8(%r15), %rcx
	leaq	8(%rax), %rdx
	testq	%rax, %rax
	movq	8(%rdi), %rax
	cmoveq	%rcx, %rdx
	movq	%rax, (%rdx)
	callq	_kfree
	jmp	LBB0_7
LBB0_6:
	movl	$-1, %r14d
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_tx_callback_unregister  ; -- Begin function hostap_tx_callback_unregister
	.p2align	2
_hostap_tx_callback_unregister:         ; @hostap_tx_callback_unregister
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
	mov	x8, x19
	ldr	x0, [x8, #8]!
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x9, [x0]
	cmp	x9, x20
	b.ne	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x0]
	cmp	x10, x20
	b.ne	LBB0_3
LBB0_5:
	ldr	x10, [x0, #8]
	add	x11, x9, #8
	cmp	x9, #0
	csel	x8, x8, x11, eq
	str	x10, [x8]
	bl	_kfree
	mov	w20, #0
	b	LBB0_7
LBB0_6:
	mov	w20, #-1
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
