	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getflags_2ghz
_getflags_2ghz:                         ## @getflags_2ghz
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_IEEE80211_MODE_11B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_isset
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_IEEE80211_CHAN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_IEEE80211_MODE_11G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_isset
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_IEEE80211_CHAN_G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, %ecx
	incl	%ebx
	movl	%eax, (%r15,%rcx,4)
LBB0_5:
	movq	_IEEE80211_MODE_11NG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_isset
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_IEEE80211_CHAN_G@GOTPCREL(%rip), %rax
	movq	_IEEE80211_CHAN_HT20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ebx, %eax
	incl	%ebx
	movl	%ecx, (%r15,%rax,4)
LBB0_7:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movq	_IEEE80211_CHAN_G@GOTPCREL(%rip), %rax
	movq	_IEEE80211_CHAN_HT40U@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ebx, %edx
	movl	%ecx, (%r15,%rdx,4)
	movq	_IEEE80211_CHAN_HT40D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	addl	$2, %ebx
	movl	%ecx, 4(%r15,%rdx,4)
LBB0_9:
	movl	%ebx, %eax
	movl	$0, (%r15,%rax,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MODE_11B,4,2         ## @IEEE80211_MODE_11B
	.comm	_IEEE80211_CHAN_B,4,2           ## @IEEE80211_CHAN_B
	.comm	_IEEE80211_MODE_11G,4,2         ## @IEEE80211_MODE_11G
	.comm	_IEEE80211_CHAN_G,4,2           ## @IEEE80211_CHAN_G
	.comm	_IEEE80211_MODE_11NG,4,2        ## @IEEE80211_MODE_11NG
	.comm	_IEEE80211_CHAN_HT20,4,2        ## @IEEE80211_CHAN_HT20
	.comm	_IEEE80211_CHAN_HT40U,4,2       ## @IEEE80211_CHAN_HT40U
	.comm	_IEEE80211_CHAN_HT40D,4,2       ## @IEEE80211_CHAN_HT40D
	.no_dead_strip	_getflags_2ghz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getflags_2ghz
_getflags_2ghz:                         ; @getflags_2ghz
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IEEE80211_MODE_11B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MODE_11B@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_isset
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IEEE80211_CHAN_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_CHAN_B@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w22, #1
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh6:
	adrp	x8, _IEEE80211_MODE_11G@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_MODE_11G@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_isset
Lloh9:
	adrp	x23, _IEEE80211_CHAN_G@GOTPAGE
Lloh10:
	ldr	x23, [x23, _IEEE80211_CHAN_G@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x23]
	str	w8, [x19, w22, uxtw #2]
	add	w22, w22, #1
LBB0_5:
Lloh11:
	adrp	x8, _IEEE80211_MODE_11NG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_MODE_11NG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_isset
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x23]
Lloh14:
	adrp	x9, _IEEE80211_CHAN_HT20@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IEEE80211_CHAN_HT20@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, w22, uxtw #2]
	add	w22, w22, #1
LBB0_7:
	cbz	w20, LBB0_9
; %bb.8:
	ldr	w8, [x23]
Lloh17:
	adrp	x9, _IEEE80211_CHAN_HT40U@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IEEE80211_CHAN_HT40U@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	add	w9, w22, #1
	str	w8, [x19, w22, uxtw #2]
Lloh20:
	adrp	x8, _IEEE80211_CHAN_HT40D@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40D@GOTPAGEOFF]
	ldr	w10, [x23]
Lloh22:
	ldr	w8, [x8]
	orr	w8, w8, w10
	add	w22, w22, #2
	str	w8, [x19, w9, uxtw #2]
LBB0_9:
	str	wzr, [x19, w22, uxtw #2]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MODE_11B,4,2         ; @IEEE80211_MODE_11B
	.comm	_IEEE80211_CHAN_B,4,2           ; @IEEE80211_CHAN_B
	.comm	_IEEE80211_MODE_11G,4,2         ; @IEEE80211_MODE_11G
	.comm	_IEEE80211_CHAN_G,4,2           ; @IEEE80211_CHAN_G
	.comm	_IEEE80211_MODE_11NG,4,2        ; @IEEE80211_MODE_11NG
	.comm	_IEEE80211_CHAN_HT20,4,2        ; @IEEE80211_CHAN_HT20
	.comm	_IEEE80211_CHAN_HT40U,4,2       ; @IEEE80211_CHAN_HT40U
	.comm	_IEEE80211_CHAN_HT40D,4,2       ; @IEEE80211_CHAN_HT40D
	.no_dead_strip	_getflags_2ghz
.subsections_via_symbols
