	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_get_channel_flags
_iwl_get_channel_flags:                 ## @iwl_get_channel_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IEEE80211_CHAN_NO_HT40@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_NVM_CHANNEL_40MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %edx
	je	LBB0_1
## %bb.4:
	testl	%ecx, %eax
	je	LBB0_8
## %bb.5:
	movq	_NUM_2GHZ_CHANNELS@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	testb	$1, %sil
	jne	LBB0_3
## %bb.6:
	movq	_IEEE80211_CHAN_NO_HT40PLUS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	testl	%ecx, %eax
	je	LBB0_8
## %bb.2:
	movq	_LAST_2GHZ_HT_PLUS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	movq	_IEEE80211_CHAN_NO_HT40PLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	$-1, %edx
	cmovgel	%eax, %edx
	andl	%edx, %r8d
	movq	_FIRST_2GHZ_HT_MINUS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jg	LBB0_8
LBB0_3:
	movq	_IEEE80211_CHAN_NO_HT40MINUS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r8d
LBB0_8:
	movq	_NVM_CHANNEL_80MHZ@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	$0, %edx
	testl	%ecx, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	_IEEE80211_CHAN_NO_80MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_10:
	movq	_NVM_CHANNEL_160MHZ@GOTPCREL(%rip), %rax
	movl	$0, %edi
	testl	%ecx, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_IEEE80211_CHAN_NO_160MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_12:
	orl	%r8d, %edx
	movq	_NVM_CHANNEL_IBSS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	movq	_IEEE80211_CHAN_NO_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NVM_CHANNEL_ACTIVE@GOTPCREL(%rip), %r8
	cmovel	%eax, %esi
	testl	%ecx, (%r8)
	cmovel	%eax, %esi
	orl	%edi, %esi
	movq	_NVM_CHANNEL_RADAR@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%ecx, %edi
	je	LBB0_14
## %bb.13:
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
LBB0_14:
	orl	%esi, %edx
	movq	_NVM_CHANNEL_INDOOR_ONLY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ecx, %esi
	je	LBB0_16
## %bb.15:
	movq	_IEEE80211_CHAN_INDOOR_ONLY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_16:
	orl	%esi, %edi
	orl	%edi, %edx
	movq	_NVM_CHANNEL_GO_CONCURRENT@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	andl	%edx, %eax
	je	LBB0_18
## %bb.17:
	movq	_IEEE80211_CHAN_IR_CONCURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	testl	%ecx, %ecx
	cmovel	%ecx, %eax
	orl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_NO_HT40,4,2     ## @IEEE80211_CHAN_NO_HT40
	.comm	_NVM_CHANNEL_40MHZ,4,2          ## @NVM_CHANNEL_40MHZ
	.comm	_LAST_2GHZ_HT_PLUS,8,3          ## @LAST_2GHZ_HT_PLUS
	.comm	_IEEE80211_CHAN_NO_HT40PLUS,4,2 ## @IEEE80211_CHAN_NO_HT40PLUS
	.comm	_FIRST_2GHZ_HT_MINUS,8,3        ## @FIRST_2GHZ_HT_MINUS
	.comm	_IEEE80211_CHAN_NO_HT40MINUS,4,2 ## @IEEE80211_CHAN_NO_HT40MINUS
	.comm	_NUM_2GHZ_CHANNELS,4,2          ## @NUM_2GHZ_CHANNELS
	.comm	_NVM_CHANNEL_80MHZ,4,2          ## @NVM_CHANNEL_80MHZ
	.comm	_IEEE80211_CHAN_NO_80MHZ,4,2    ## @IEEE80211_CHAN_NO_80MHZ
	.comm	_NVM_CHANNEL_160MHZ,4,2         ## @NVM_CHANNEL_160MHZ
	.comm	_IEEE80211_CHAN_NO_160MHZ,4,2   ## @IEEE80211_CHAN_NO_160MHZ
	.comm	_NVM_CHANNEL_IBSS,4,2           ## @NVM_CHANNEL_IBSS
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ## @IEEE80211_CHAN_NO_IR
	.comm	_NVM_CHANNEL_ACTIVE,4,2         ## @NVM_CHANNEL_ACTIVE
	.comm	_NVM_CHANNEL_RADAR,4,2          ## @NVM_CHANNEL_RADAR
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
	.comm	_NVM_CHANNEL_INDOOR_ONLY,4,2    ## @NVM_CHANNEL_INDOOR_ONLY
	.comm	_IEEE80211_CHAN_INDOOR_ONLY,4,2 ## @IEEE80211_CHAN_INDOOR_ONLY
	.comm	_NVM_CHANNEL_GO_CONCURRENT,4,2  ## @NVM_CHANNEL_GO_CONCURRENT
	.comm	_IEEE80211_CHAN_IR_CONCURRENT,4,2 ## @IEEE80211_CHAN_IR_CONCURRENT
	.no_dead_strip	_iwl_get_channel_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_get_channel_flags
_iwl_get_channel_flags:                 ; @iwl_get_channel_flags
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IEEE80211_CHAN_NO_HT40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_CHAN_NO_HT40@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NVM_CHANNEL_40MHZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVM_CHANNEL_40MHZ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w3
	cbz	w2, LBB0_4
; %bb.1:
	cbz	w9, LBB0_8
; %bb.2:
Lloh6:
	adrp	x9, _NUM_2GHZ_CHANNELS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NUM_2GHZ_CHANNELS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w9, w1, w9
	tbnz	w9, #0, LBB0_6
; %bb.3:
Lloh9:
	adrp	x9, _IEEE80211_CHAN_NO_HT40PLUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_CHAN_NO_HT40PLUS@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	cbz	w9, LBB0_8
; %bb.5:
Lloh11:
	adrp	x9, _LAST_2GHZ_HT_PLUS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LAST_2GHZ_HT_PLUS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _IEEE80211_CHAN_NO_HT40PLUS@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IEEE80211_CHAN_NO_HT40PLUS@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	x9, x0
	mov	w9, #-1
	csinv	w9, w9, w10, lt
	and	w8, w9, w8
Lloh17:
	adrp	x9, _FIRST_2GHZ_HT_MINUS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FIRST_2GHZ_HT_MINUS@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x0
	b.gt	LBB0_8
LBB0_6:
Lloh20:
	adrp	x9, _IEEE80211_CHAN_NO_HT40MINUS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IEEE80211_CHAN_NO_HT40MINUS@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	bic	w8, w8, w9
LBB0_8:
Lloh22:
	adrp	x9, _NVM_CHANNEL_80MHZ@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NVM_CHANNEL_80MHZ@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _IEEE80211_CHAN_NO_80MHZ@GOTPAGE
Lloh26:
	ldr	x10, [x10, _IEEE80211_CHAN_NO_80MHZ@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w9, w3
	csel	w9, w10, wzr, eq
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _NVM_CHANNEL_160MHZ@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NVM_CHANNEL_160MHZ@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _IEEE80211_CHAN_NO_160MHZ@GOTPAGE
Lloh32:
	ldr	x10, [x10, _IEEE80211_CHAN_NO_160MHZ@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w9, w3
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh34:
	adrp	x9, _NVM_CHANNEL_IBSS@GOTPAGE
Lloh35:
	ldr	x9, [x9, _NVM_CHANNEL_IBSS@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w3
Lloh37:
	adrp	x9, _IEEE80211_CHAN_NO_IR@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IEEE80211_CHAN_NO_IR@GOTPAGEOFF]
Lloh39:
	adrp	x10, _NVM_CHANNEL_ACTIVE@GOTPAGE
Lloh40:
	ldr	x10, [x10, _NVM_CHANNEL_ACTIVE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	ldr	w10, [x10]
	and	w10, w10, w3
	ccmp	w10, #0, #4, ne
	csel	w10, w9, wzr, eq
	orr	w8, w8, w10
Lloh43:
	adrp	x10, _NVM_CHANNEL_RADAR@GOTPAGE
Lloh44:
	ldr	x10, [x10, _NVM_CHANNEL_RADAR@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
Lloh46:
	adrp	x11, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh47:
	ldr	x11, [x11, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh48:
	ldr	w11, [x11]
	tst	w10, w3
	csel	w10, wzr, w11, eq
	orr	w8, w8, w10
Lloh49:
	adrp	x10, _NVM_CHANNEL_INDOOR_ONLY@GOTPAGE
Lloh50:
	ldr	x10, [x10, _NVM_CHANNEL_INDOOR_ONLY@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
Lloh52:
	adrp	x11, _IEEE80211_CHAN_INDOOR_ONLY@GOTPAGE
Lloh53:
	ldr	x11, [x11, _IEEE80211_CHAN_INDOOR_ONLY@GOTPAGEOFF]
Lloh54:
	ldr	w11, [x11]
	tst	w10, w3
	csel	w10, wzr, w11, eq
	orr	w8, w8, w10
Lloh55:
	adrp	x10, _NVM_CHANNEL_GO_CONCURRENT@GOTPAGE
Lloh56:
	ldr	x10, [x10, _NVM_CHANNEL_GO_CONCURRENT@GOTPAGEOFF]
Lloh57:
	ldr	w10, [x10]
	and	w10, w10, w3
	tst	w8, w9
	ccmp	w10, #0, #4, ne
Lloh58:
	adrp	x9, _IEEE80211_CHAN_IR_CONCURRENT@GOTPAGE
Lloh59:
	ldr	x9, [x9, _IEEE80211_CHAN_IR_CONCURRENT@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh41
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_NO_HT40,4,2     ; @IEEE80211_CHAN_NO_HT40
	.comm	_NVM_CHANNEL_40MHZ,4,2          ; @NVM_CHANNEL_40MHZ
	.comm	_LAST_2GHZ_HT_PLUS,8,3          ; @LAST_2GHZ_HT_PLUS
	.comm	_IEEE80211_CHAN_NO_HT40PLUS,4,2 ; @IEEE80211_CHAN_NO_HT40PLUS
	.comm	_FIRST_2GHZ_HT_MINUS,8,3        ; @FIRST_2GHZ_HT_MINUS
	.comm	_IEEE80211_CHAN_NO_HT40MINUS,4,2 ; @IEEE80211_CHAN_NO_HT40MINUS
	.comm	_NUM_2GHZ_CHANNELS,4,2          ; @NUM_2GHZ_CHANNELS
	.comm	_NVM_CHANNEL_80MHZ,4,2          ; @NVM_CHANNEL_80MHZ
	.comm	_IEEE80211_CHAN_NO_80MHZ,4,2    ; @IEEE80211_CHAN_NO_80MHZ
	.comm	_NVM_CHANNEL_160MHZ,4,2         ; @NVM_CHANNEL_160MHZ
	.comm	_IEEE80211_CHAN_NO_160MHZ,4,2   ; @IEEE80211_CHAN_NO_160MHZ
	.comm	_NVM_CHANNEL_IBSS,4,2           ; @NVM_CHANNEL_IBSS
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ; @IEEE80211_CHAN_NO_IR
	.comm	_NVM_CHANNEL_ACTIVE,4,2         ; @NVM_CHANNEL_ACTIVE
	.comm	_NVM_CHANNEL_RADAR,4,2          ; @NVM_CHANNEL_RADAR
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
	.comm	_NVM_CHANNEL_INDOOR_ONLY,4,2    ; @NVM_CHANNEL_INDOOR_ONLY
	.comm	_IEEE80211_CHAN_INDOOR_ONLY,4,2 ; @IEEE80211_CHAN_INDOOR_ONLY
	.comm	_NVM_CHANNEL_GO_CONCURRENT,4,2  ; @NVM_CHANNEL_GO_CONCURRENT
	.comm	_IEEE80211_CHAN_IR_CONCURRENT,4,2 ; @IEEE80211_CHAN_IR_CONCURRENT
	.no_dead_strip	_iwl_get_channel_flags
.subsections_via_symbols
