	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_config_write_freqs
_wpa_config_write_freqs:                ## @wpa_config_write_freqs
	.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
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r12
	cmpl	$0, (%rsi)
	je	LBB0_5
## %bb.2:
	leaq	4(%r12), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addq	$10, %rbx
	cmpl	$0, (%rax)
	leaq	4(%rax), %rax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %edi
	orl	$1, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movl	(%r12), %r8d
	testl	%r8d, %r8d
	je	LBB0_14
## %bb.8:
	leaq	(%rax,%rbx), %rcx
	incq	%rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r15d
	subl	%r13d, %r15d
	testq	%r14, %r14
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%r13, %rdi
	movl	%r15d, %esi
	leaq	L_.str(%rip), %rdx
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%ebx, %rax
	addq	%rax, %r13
	movl	4(%r12,%r14,4), %r8d
	incq	%r14
	testl	%r8d, %r8d
	jne	LBB0_9
	jmp	LBB0_13
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	$0, -1(%rax)
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_14:
	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	"%s%u"

L_.str.1:                               ## @.str.1
	.space	1

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

	.no_dead_strip	_wpa_config_write_freqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_config_write_freqs
_wpa_config_write_freqs:                ; @wpa_config_write_freqs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x21, #0
	add	x8, x20, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8], #4
	add	x21, x21, #10
	cbnz	w9, LBB0_3
	b	LBB0_6
LBB0_4:
	mov	x19, #0
	b	LBB0_12
LBB0_5:
	mov	x21, #0
LBB0_6:
	orr	w0, w21, #0x1
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.7:
	ldr	w4, [x20]
	cbz	w4, LBB0_12
; %bb.8:
	mov	x25, #0
	add	x8, x19, x21
	add	x24, x8, #1
Lloh0:
	adrp	x26, l_.str.2@PAGE
Lloh1:
	add	x26, x26, l_.str.2@PAGEOFF
	add	x27, x20, #4
Lloh2:
	adrp	x28, l_.str.1@PAGE
Lloh3:
	add	x28, x28, l_.str.1@PAGEOFF
	mov	x20, x19
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w24, w20
	cmp	x25, #0
	csel	x3, x28, x26, eq
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x20, x20, w22, sxtw
	ldr	w4, [x27, x25, lsl #2]
	add	x25, x25, #1
	cbnz	w4, LBB0_9
	b	LBB0_12
LBB0_11:
	sturb	wzr, [x24, #-1]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%u"

l_.str.1:                               ; @.str.1
	.space	1

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

	.no_dead_strip	_wpa_config_write_freqs
.subsections_via_symbols
