	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_get_bands                 ## -- Begin function wpas_get_bands
	.p2align	4, 0x90
_wpas_get_bands:                        ## @wpas_get_bands
	.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
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movl	(%rsi), %edi
	testl	%edi, %edi
	je	LBB0_17
## %bb.2:
	addq	$4, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_wpas_freq_to_band
	orl	%eax, %r14d
	movl	(%rbx), %edi
	addq	$4, %rbx
	testl	%edi, %edi
	jne	LBB0_3
	jmp	LBB0_18
LBB0_4:
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.5:
	movq	8(%rdi), %rcx
	movq	_HOSTAPD_MODE_IEEE80211B@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_HOSTAPD_MODE_IEEE80211G@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	_HOSTAPD_MODE_IEEE80211A@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r12
	movq	_HOSTAPD_MODE_IEEE80211AD@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r9
	movq	_HOSTAPD_MODE_IEEE80211ANY@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r8
	movq	_BAND_2_4_GHZ@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r13d
	movq	_BAND_5_GHZ@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r10d
	movl	%r10d, %r11d
	orl	%r13d, %r11d
	movq	_BAND_60_GHZ@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r15d
	orl	%r15d, %r11d
	shlq	$4, %rax
	xorl	%edi, %edi
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	orl	%r13d, %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rdi
	cmpq	%rdi, %rax
	je	LBB0_18
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdi)
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rcx,%rdi), %rbx
	cmpq	%rdx, %rbx
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rsi, %rbx
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r12, %rbx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	orl	%r10d, %r14d
	jmp	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r9, %rbx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	orl	%r15d, %r14d
	jmp	LBB0_7
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r8, %rbx
	cmovel	%r11d, %r14d
	jmp	LBB0_7
LBB0_17:
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_MODE_IEEE80211B,8,3    ## @HOSTAPD_MODE_IEEE80211B
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ## @HOSTAPD_MODE_IEEE80211G
	.comm	_BAND_2_4_GHZ,4,2               ## @BAND_2_4_GHZ
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ## @HOSTAPD_MODE_IEEE80211A
	.comm	_BAND_5_GHZ,4,2                 ## @BAND_5_GHZ
	.comm	_HOSTAPD_MODE_IEEE80211AD,8,3   ## @HOSTAPD_MODE_IEEE80211AD
	.comm	_BAND_60_GHZ,4,2                ## @BAND_60_GHZ
	.comm	_HOSTAPD_MODE_IEEE80211ANY,8,3  ## @HOSTAPD_MODE_IEEE80211ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_get_bands                 ; -- Begin function wpas_get_bands
	.p2align	2
_wpas_get_bands:                        ; @wpas_get_bands
	.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
	cbz	x1, LBB0_4
; %bb.1:
	ldr	w0, [x1]
	cbz	w0, LBB0_9
; %bb.2:
	mov	w19, #0
	add	x20, x1, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_wpas_freq_to_band
	orr	w19, w0, w19
	ldr	w0, [x20], #4
	cbnz	w0, LBB0_3
	b	LBB0_10
LBB0_4:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	w19, #0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x9, _HOSTAPD_MODE_IEEE80211B@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOSTAPD_MODE_IEEE80211B@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _HOSTAPD_MODE_IEEE80211G@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HOSTAPD_MODE_IEEE80211G@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _HOSTAPD_MODE_IEEE80211A@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HOSTAPD_MODE_IEEE80211A@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
Lloh9:
	adrp	x12, _HOSTAPD_MODE_IEEE80211AD@GOTPAGE
Lloh10:
	ldr	x12, [x12, _HOSTAPD_MODE_IEEE80211AD@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
Lloh12:
	adrp	x13, _HOSTAPD_MODE_IEEE80211ANY@GOTPAGE
Lloh13:
	ldr	x13, [x13, _HOSTAPD_MODE_IEEE80211ANY@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
Lloh15:
	adrp	x14, _BAND_2_4_GHZ@GOTPAGE
Lloh16:
	ldr	x14, [x14, _BAND_2_4_GHZ@GOTPAGEOFF]
Lloh17:
	ldr	w14, [x14]
Lloh18:
	adrp	x15, _BAND_5_GHZ@GOTPAGE
Lloh19:
	ldr	x15, [x15, _BAND_5_GHZ@GOTPAGEOFF]
Lloh20:
	ldr	w15, [x15]
	orr	w17, w15, w14
Lloh21:
	adrp	x16, _BAND_60_GHZ@GOTPAGE
Lloh22:
	ldr	x16, [x16, _BAND_60_GHZ@GOTPAGEOFF]
Lloh23:
	ldr	w16, [x16]
	orr	w17, w17, w16
	add	x0, x0, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x0, #16
	subs	x8, x8, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x1, [x0, #-8]
	cbz	x1, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x0]
	cmp	x1, x13
	csel	w2, w17, w19, eq
	orr	w3, w16, w19
	cmp	x1, x12
	csel	w2, w2, w3, ne
	orr	w3, w15, w19
	cmp	x1, x11
	csel	w2, w2, w3, ne
	orr	w3, w14, w19
	cmp	x1, x9
	ccmp	x1, x10, #4, ne
	csel	w19, w2, w3, ne
	b	LBB0_6
LBB0_9:
	mov	w19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_MODE_IEEE80211B,8,3    ; @HOSTAPD_MODE_IEEE80211B
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ; @HOSTAPD_MODE_IEEE80211G
	.comm	_BAND_2_4_GHZ,4,2               ; @BAND_2_4_GHZ
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ; @HOSTAPD_MODE_IEEE80211A
	.comm	_BAND_5_GHZ,4,2                 ; @BAND_5_GHZ
	.comm	_HOSTAPD_MODE_IEEE80211AD,8,3   ; @HOSTAPD_MODE_IEEE80211AD
	.comm	_BAND_60_GHZ,4,2                ; @BAND_60_GHZ
	.comm	_HOSTAPD_MODE_IEEE80211ANY,8,3  ; @HOSTAPD_MODE_IEEE80211ANY
.subsections_via_symbols
