	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_get_aid                ## -- Begin function hostapd_get_aid
	.p2align	4, 0x90
_hostapd_get_aid:                       ## @hostapd_get_aid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %edx
	testl	%edx, %edx
	jle	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_12:
	callq	_wpa_printf
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_TEST_FAIL
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_3
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_AID_WORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_AID_WORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%r12), %rcx
	movl	(%rcx,%r13,4), %r14d
	cmpl	$-1, %r14d
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$31, %ebx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	incl	%ebx
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %r14d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	jne	LBB0_8
LBB0_10:
	movl	%r13d, %eax
	shll	$5, %eax
	addl	%ebx, %eax
	cmpl	$2006, %eax                     ## imm = 0x7D6
	jg	LBB0_15
## %bb.11:
	incl	%eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movl	%ebx, %edi
	callq	_BIT
	movq	(%r12), %rcx
	movl	%r13d, %edx
	orl	%eax, (%rcx,%rdx,4)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  old AID %d"

	.comm	_AID_WORDS,4,2                  ## @AID_WORDS
L_.str.1:                               ## @.str.1
	.asciz	"  new AID %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_get_aid                ; -- Begin function hostapd_get_aid
	.p2align	2
_hostapd_get_aid:                       ; @hostapd_get_aid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w2, [x1]
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	x19, x1
	mov	x20, x0
	bl	_TEST_FAIL
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh5:
	adrp	x23, _AID_WORDS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AID_WORDS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.7:
	mov	x22, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	mov	w0, #-1
	cmp	x22, w8, sxtw
	b.ge	LBB0_5
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x9, [x20]
	ldr	w21, [x9, x22, lsl #2]
	cmn	w21, #1
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #0
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w21, #0
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w21, #31
	b.eq	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	w21, w21, #1
	ldr	x8, [x20]
	ldr	w24, [x8, x22, lsl #2]
	mov	x0, x21
	bl	_BIT
	tst	w0, w24
	b.ne	LBB0_13
LBB0_15:
	add	w8, w21, w22, lsl #5
	cmp	w8, #2006
	b.gt	LBB0_4
; %bb.16:
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x21
	bl	_BIT
	ldr	x8, [x20]
	and	x9, x22, #0xffffffff
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	orr	w10, w10, w0
	str	w10, [x8, x9]
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_17:
	mov	w21, #0
	b	LBB0_15
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  old AID %d"

	.comm	_AID_WORDS,4,2                  ; @AID_WORDS
l_.str.1:                               ; @.str.1
	.asciz	"  new AID %d"

.subsections_via_symbols
