	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function an_setssid
_an_setssid:                            ## @an_setssid
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	$8, -40(%rbp)
	movq	_AN_RID_SSIDLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %rsi
	callq	_an_getval
	movl	-40(%rbp), %ecx
	addl	$-4, %ecx
	sarl	$2, %ecx
	movq	_MAX_SSIDS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	cmpl	%esi, %ecx
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %edx
	callq	_printf
	movl	(%r12), %ecx
LBB0_2:
	cmpl	%ebx, %ecx
	jge	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_errx
	movl	$1, %edi
	callq	_exit
LBB0_4:
	movq	-40(%rbp), %rax
	movslq	%ebx, %rbx
	movl	-8(%rax,%rbx,8), %edi
	movl	$4, %esi
	callq	_bzero
	movq	-40(%rbp), %rax
	movl	-8(%rax,%rbx,8), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	-40(%rbp), %rax
	movl	-8(%rax,%rbx,8), %edi
	callq	_strlen
	movq	-40(%rbp), %rcx
	movl	%eax, -4(%rcx,%rbx,8)
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_an_setval
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_AN_RID_SSIDLIST,4,2            ## @AN_RID_SSIDLIST
	.comm	_MAX_SSIDS,4,2                  ## @MAX_SSIDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many SSIDs only printing %d of %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad modifier %d: there are only %d SSID settings"

	.no_dead_strip	_an_setssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function an_setssid
_an_setssid:                            ; @an_setssid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AN_RID_SSIDLIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AN_RID_SSIDLIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #8
	stp	w9, w8, [sp, #8]
	add	x1, sp, #8
	bl	_an_getval
	ldr	w8, [sp, #8]
	sub	w8, w8, #4
	asr	w3, w8, #2
Lloh3:
	adrp	x22, _MAX_SSIDS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_SSIDS@GOTPAGEOFF]
	ldr	w1, [x22]
	cmp	w3, w1
	b.le	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x3
	bl	_printf
	ldr	w3, [x22]
LBB0_2:
	cmp	w3, w21
	b.ge	LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_errx
	mov	w0, #1
	bl	_exit
LBB0_4:
	ldr	x8, [sp, #8]
	sbfiz	x9, x21, #3, #32
	sub	x21, x9, #8
	ldr	w0, [x8, x21]
	mov	w1, #4
	bl	_bzero
	ldr	x8, [sp, #8]
	ldr	w0, [x8, x21]
	mov	x1, x20
	mov	w2, #4
	bl	_strlcpy
	ldr	x8, [sp, #8]
	ldr	w0, [x8, x21]
	bl	_strlen
	ldr	x8, [sp, #8]
	add	x8, x8, x21
	str	w0, [x8, #4]
	add	x1, sp, #8
	mov	x0, x19
	bl	_an_setval
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AN_RID_SSIDLIST,4,2            ; @AN_RID_SSIDLIST
	.comm	_MAX_SSIDS,4,2                  ; @MAX_SSIDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many SSIDs only printing %d of %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad modifier %d: there are only %d SSID settings"

	.no_dead_strip	_an_setssid
.subsections_via_symbols
