	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radio_work_free
_radio_work_free:                       ## @radio_work_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	cmpq	%rbx, 16(%rdi)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
LBB0_3:
	movq	(%rdi), %rax
	movq	(%rax), %r9
	decq	%r9
	movq	%r9, (%rax)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %r8
	callq	_wpa_dbg
LBB0_4:
	movq	%rbx, %rdi
	callq	_dl_list_del
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	movq	24(%rbx), %r9
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %r8
	callq	_wpa_dbg
	movq	8(%rbx), %rdi
	movq	$0, 16(%rdi)
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freeing radio work '%s'@%p (started=%d) that is marked as scan_work"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"radio_work_free('%s'@%p): num_active_works --> %u"

	.no_dead_strip	_radio_work_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radio_work_free
_radio_work_free:                       ; @radio_work_free
	.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	x19, x0
	ldr	x0, [x0, #8]
	ldr	x8, [x0, #16]
	cmp	x8, x19
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
LBB0_2:
	ldr	x8, [x0]
	ldr	x9, [x8]
	sub	x5, x9, #1
	str	x5, [x8]
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x4, x19
	bl	_wpa_dbg
LBB0_3:
	mov	x0, x19
	bl	_dl_list_del
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_os_free
LBB0_4:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
	ldr	x5, [x19, #24]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x19
	bl	_wpa_dbg
	ldr	x0, [x19, #8]
	str	xzr, [x0, #16]
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_2
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freeing radio work '%s'@%p (started=%d) that is marked as scan_work"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"radio_work_free('%s'@%p): num_active_works --> %u"

	.no_dead_strip	_radio_work_free
.subsections_via_symbols
