	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_ctrl_radio_work_add
_wpas_ctrl_radio_work_add:              ## @wpas_ctrl_radio_work_add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$24, %edi
	callq	_os_zalloc
	movq	%rax, %r13
	movl	$-1, %eax
	testq	%r13, %r13
	je	LBB0_12
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_os_strchr
	testq	%rax, %rax
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	movq	%rax, %r15
	leaq	1(%rax), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	addq	$5, %rax
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_os_strlen
	movq	%rax, %r15
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	subq	%r14, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	addq	$8, %rax
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, 16(%r13)
LBB0_8:
	movq	%rbx, %r12
LBB0_9:
	leaq	-4(%r15), %rax
	cmpq	$-8, %rax
	movl	$3, %ebx
	cmovaeq	%r15, %rbx
	movq	(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$8, %edx
	callq	_os_strlcpy
	movq	(%r13), %rdi
	addq	$4, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_os_memcpy
	movq	(%r13), %rax
	movb	$0, 4(%rbx,%rax)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	incq	%rax
	movl	$1, %ecx
	cmovneq	%rax, %rcx
	movq	%rcx, (%rdi)
	movq	%rcx, 8(%r13)
	movq	(%r13), %rdx
	movq	_wpas_ctrl_radio_work_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	movq	%r13, %r9
	callq	_radio_add_work
	testq	%rax, %rax
	js	LBB0_11
## %bb.10:
	movq	8(%r13), %rcx
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_os_snprintf
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_os_snprintf_error
	negq	%rax
	sbbl	%ebx, %ebx
	orl	%r14d, %ebx
	movl	%ebx, %eax
	jmp	LBB0_12
LBB0_11:
	movq	%r13, %rdi
	callq	_os_free
	movl	$-1, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"freq="

L_.str.1:                               ## @.str.1
	.asciz	"timeout="

L_.str.2:                               ## @.str.2
	.asciz	"ext:"

	.comm	_wpas_ctrl_radio_work_cb,4,2    ## @wpas_ctrl_radio_work_cb
L_.str.3:                               ## @.str.3
	.asciz	"%u"

	.no_dead_strip	_wpas_ctrl_radio_work_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_ctrl_radio_work_add
_wpas_ctrl_radio_work_add:              ; @wpas_ctrl_radio_work_add
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	mov	w0, #24
	bl	_os_zalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	mov	x0, x23
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_4
; %bb.2:
	sub	x25, x0, x23
	add	x26, x0, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	bl	_os_strstr
	cbz	x0, LBB0_5
; %bb.3:
	add	x0, x0, #5
	bl	_atoi
	mov	x24, x0
	b	LBB0_6
LBB0_4:
	mov	x0, x23
	bl	_os_strlen
	mov	x25, x0
	mov	w24, #0
	b	LBB0_8
LBB0_5:
	mov	w24, #0
LBB0_6:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x26
	bl	_os_strstr
	cbz	x0, LBB0_8
; %bb.7:
	add	x0, x0, #8
	bl	_atoi
	str	x0, [x21, #16]
LBB0_8:
	sub	x8, x25, #4
	cmn	x8, #8
	mov	w8, #3
	csel	x25, x8, x25, lo
	ldr	x0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #8
	bl	_os_strlcpy
	ldr	x8, [x21]
	add	x0, x8, #4
	mov	x1, x23
	mov	x2, x25
	bl	_os_memcpy
	ldr	x8, [x21]
	add	x8, x25, x8
	strb	wzr, [x8, #4]
	ldr	x8, [x22]
	adds	x8, x8, #1
	csinc	x8, x8, xzr, lo
	str	x8, [x22]
	str	x8, [x21, #8]
	ldr	x2, [x21]
Lloh6:
	adrp	x8, _wpas_ctrl_radio_work_cb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wpas_ctrl_radio_work_cb@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x24
	mov	w3, #0
	mov	x5, x21
	bl	_radio_add_work
	tbnz	x0, #63, LBB0_10
; %bb.9:
	ldr	x3, [x21, #8]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_os_snprintf
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_os_snprintf_error
	cmp	x0, #0
	csinv	w0, w20, wzr, eq
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	bl	_os_free
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"freq="

l_.str.1:                               ; @.str.1
	.asciz	"timeout="

l_.str.2:                               ; @.str.2
	.asciz	"ext:"

	.comm	_wpas_ctrl_radio_work_cb,4,2    ; @wpas_ctrl_radio_work_cb
l_.str.3:                               ; @.str.3
	.asciz	"%u"

	.no_dead_strip	_wpas_ctrl_radio_work_add
.subsections_via_symbols
