	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_nvm_get_regdom_bw_flags
_iwl_nvm_get_regdom_bw_flags:           ## @iwl_nvm_get_regdom_bw_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	_NL80211_RRF_NO_HT40@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_NUM_2GHZ_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NVM_CHANNEL_40MHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%esi, %ecx
	jle	LBB0_4
## %bb.1:
	testq	%rdx, %rax
	je	LBB0_8
## %bb.2:
	movslq	%esi, %rax
	movq	(%rdi,%rax,8), %rax
	movq	_LAST_2GHZ_HT_PLUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_NL80211_RRF_NO_HT40PLUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movl	$-1, %esi
	cmovlel	%ecx, %esi
	andl	%esi, %r9d
	movq	_FIRST_2GHZ_HT_MINUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
	jmp	LBB0_8
LBB0_4:
	testq	%rdx, %rax
	je	LBB0_8
## %bb.5:
	subl	%ecx, %esi
	testb	$1, %sil
	jne	LBB0_3
## %bb.6:
	movq	_NL80211_RRF_NO_HT40PLUS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_NL80211_RRF_NO_HT40MINUS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r9d
LBB0_8:
	movq	_NVM_CHANNEL_80MHZ@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	movl	$0, %esi
	testq	%rdx, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	_NL80211_RRF_NO_80MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_10:
	movq	_NVM_CHANNEL_160MHZ@GOTPCREL(%rip), %rax
	movl	$0, %edi
	testq	%rdx, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_NL80211_RRF_NO_160MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_12:
	orl	%r9d, %esi
	movq	_NVM_CHANNEL_ACTIVE@GOTPCREL(%rip), %rax
	testq	%rdx, (%rax)
	movq	_NL80211_RRF_NO_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %ecx
	cmovel	%eax, %ecx
	orl	%edi, %ecx
	movq	_NVM_CHANNEL_RADAR@GOTPCREL(%rip), %r9
	movl	$0, %edi
	testq	%rdx, (%r9)
	je	LBB0_14
## %bb.13:
	movq	_NL80211_RRF_DFS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
LBB0_14:
	orl	%ecx, %esi
	movq	_NVM_CHANNEL_INDOOR_ONLY@GOTPCREL(%rip), %r9
	movl	$0, %ecx
	testq	%rdx, (%r9)
	je	LBB0_16
## %bb.15:
	movq	_NL80211_RRF_NO_OUTDOOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:
	orl	%ecx, %edi
	orl	%edi, %esi
	movq	_NVM_CHANNEL_GO_CONCURRENT@GOTPCREL(%rip), %rcx
	andl	%esi, %eax
	je	LBB0_18
## %bb.17:
	movq	_NL80211_RRF_GO_CONCURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	testq	%rdx, (%rcx)
	cmovel	%r8d, %eax
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_RRF_NO_HT40,4,2        ## @NL80211_RRF_NO_HT40
	.comm	_NUM_2GHZ_CHANNELS,4,2          ## @NUM_2GHZ_CHANNELS
	.comm	_NVM_CHANNEL_40MHZ,8,3          ## @NVM_CHANNEL_40MHZ
	.comm	_LAST_2GHZ_HT_PLUS,8,3          ## @LAST_2GHZ_HT_PLUS
	.comm	_NL80211_RRF_NO_HT40PLUS,4,2    ## @NL80211_RRF_NO_HT40PLUS
	.comm	_FIRST_2GHZ_HT_MINUS,8,3        ## @FIRST_2GHZ_HT_MINUS
	.comm	_NL80211_RRF_NO_HT40MINUS,4,2   ## @NL80211_RRF_NO_HT40MINUS
	.comm	_NVM_CHANNEL_80MHZ,8,3          ## @NVM_CHANNEL_80MHZ
	.comm	_NL80211_RRF_NO_80MHZ,4,2       ## @NL80211_RRF_NO_80MHZ
	.comm	_NVM_CHANNEL_160MHZ,8,3         ## @NVM_CHANNEL_160MHZ
	.comm	_NL80211_RRF_NO_160MHZ,4,2      ## @NL80211_RRF_NO_160MHZ
	.comm	_NVM_CHANNEL_ACTIVE,8,3         ## @NVM_CHANNEL_ACTIVE
	.comm	_NL80211_RRF_NO_IR,4,2          ## @NL80211_RRF_NO_IR
	.comm	_NVM_CHANNEL_RADAR,8,3          ## @NVM_CHANNEL_RADAR
	.comm	_NL80211_RRF_DFS,4,2            ## @NL80211_RRF_DFS
	.comm	_NVM_CHANNEL_INDOOR_ONLY,8,3    ## @NVM_CHANNEL_INDOOR_ONLY
	.comm	_NL80211_RRF_NO_OUTDOOR,4,2     ## @NL80211_RRF_NO_OUTDOOR
	.comm	_NVM_CHANNEL_GO_CONCURRENT,8,3  ## @NVM_CHANNEL_GO_CONCURRENT
	.comm	_NL80211_RRF_GO_CONCURRENT,4,2  ## @NL80211_RRF_GO_CONCURRENT
	.no_dead_strip	_iwl_nvm_get_regdom_bw_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_nvm_get_regdom_bw_flags
_iwl_nvm_get_regdom_bw_flags:           ; @iwl_nvm_get_regdom_bw_flags
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NL80211_RRF_NO_HT40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_RRF_NO_HT40@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NUM_2GHZ_CHANNELS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NUM_2GHZ_CHANNELS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _NVM_CHANNEL_40MHZ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NVM_CHANNEL_40MHZ@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	and	x10, x10, x2
	cmp	w9, w1
	b.le	LBB0_3
; %bb.1:
	cbz	x10, LBB0_8
; %bb.2:
	ldr	x9, [x0, w1, sxtw #3]
Lloh9:
	adrp	x10, _LAST_2GHZ_HT_PLUS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LAST_2GHZ_HT_PLUS@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _NL80211_RRF_NO_HT40PLUS@GOTPAGE
Lloh13:
	ldr	x11, [x11, _NL80211_RRF_NO_HT40PLUS@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	x9, x10
	mov	w10, #-1
	csinv	w10, w10, w11, gt
	and	w8, w10, w8
Lloh15:
	adrp	x10, _FIRST_2GHZ_HT_MINUS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FIRST_2GHZ_HT_MINUS@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_6
	b	LBB0_8
LBB0_3:
	cbz	x10, LBB0_8
; %bb.4:
	sub	w9, w1, w9
	tbnz	w9, #0, LBB0_6
; %bb.5:
Lloh18:
	adrp	x9, _NL80211_RRF_NO_HT40PLUS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NL80211_RRF_NO_HT40PLUS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh20:
	adrp	x9, _NL80211_RRF_NO_HT40MINUS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NL80211_RRF_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	x9, [x9]
Lloh25:
	adrp	x10, _NL80211_RRF_NO_80MHZ@GOTPAGE
Lloh26:
	ldr	x10, [x10, _NL80211_RRF_NO_80MHZ@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	x9, x2
	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	x9, [x9]
Lloh31:
	adrp	x10, _NL80211_RRF_NO_160MHZ@GOTPAGE
Lloh32:
	ldr	x10, [x10, _NL80211_RRF_NO_160MHZ@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	x9, x2
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh34:
	adrp	x9, _NVM_CHANNEL_ACTIVE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _NVM_CHANNEL_ACTIVE@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
Lloh37:
	adrp	x10, _NL80211_RRF_NO_IR@GOTPAGE
Lloh38:
	ldr	x10, [x10, _NL80211_RRF_NO_IR@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	tst	x9, x2
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _NVM_CHANNEL_RADAR@GOTPAGE
Lloh41:
	ldr	x9, [x9, _NVM_CHANNEL_RADAR@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
Lloh43:
	adrp	x11, _NL80211_RRF_DFS@GOTPAGE
Lloh44:
	ldr	x11, [x11, _NL80211_RRF_DFS@GOTPAGEOFF]
Lloh45:
	ldr	w11, [x11]
	tst	x9, x2
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _NVM_CHANNEL_INDOOR_ONLY@GOTPAGE
Lloh47:
	ldr	x9, [x9, _NVM_CHANNEL_INDOOR_ONLY@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
Lloh49:
	adrp	x11, _NL80211_RRF_NO_OUTDOOR@GOTPAGE
Lloh50:
	ldr	x11, [x11, _NL80211_RRF_NO_OUTDOOR@GOTPAGEOFF]
Lloh51:
	ldr	w11, [x11]
	tst	x9, x2
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
Lloh52:
	adrp	x9, _NVM_CHANNEL_GO_CONCURRENT@GOTPAGE
Lloh53:
	ldr	x9, [x9, _NVM_CHANNEL_GO_CONCURRENT@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	and	x9, x9, x2
	tst	w8, w10
	ccmp	x9, #0, #4, ne
Lloh55:
	adrp	x9, _NL80211_RRF_GO_CONCURRENT@GOTPAGE
Lloh56:
	ldr	x9, [x9, _NL80211_RRF_GO_CONCURRENT@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.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	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.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	_NL80211_RRF_NO_HT40,4,2        ; @NL80211_RRF_NO_HT40
	.comm	_NUM_2GHZ_CHANNELS,4,2          ; @NUM_2GHZ_CHANNELS
	.comm	_NVM_CHANNEL_40MHZ,8,3          ; @NVM_CHANNEL_40MHZ
	.comm	_LAST_2GHZ_HT_PLUS,8,3          ; @LAST_2GHZ_HT_PLUS
	.comm	_NL80211_RRF_NO_HT40PLUS,4,2    ; @NL80211_RRF_NO_HT40PLUS
	.comm	_FIRST_2GHZ_HT_MINUS,8,3        ; @FIRST_2GHZ_HT_MINUS
	.comm	_NL80211_RRF_NO_HT40MINUS,4,2   ; @NL80211_RRF_NO_HT40MINUS
	.comm	_NVM_CHANNEL_80MHZ,8,3          ; @NVM_CHANNEL_80MHZ
	.comm	_NL80211_RRF_NO_80MHZ,4,2       ; @NL80211_RRF_NO_80MHZ
	.comm	_NVM_CHANNEL_160MHZ,8,3         ; @NVM_CHANNEL_160MHZ
	.comm	_NL80211_RRF_NO_160MHZ,4,2      ; @NL80211_RRF_NO_160MHZ
	.comm	_NVM_CHANNEL_ACTIVE,8,3         ; @NVM_CHANNEL_ACTIVE
	.comm	_NL80211_RRF_NO_IR,4,2          ; @NL80211_RRF_NO_IR
	.comm	_NVM_CHANNEL_RADAR,8,3          ; @NVM_CHANNEL_RADAR
	.comm	_NL80211_RRF_DFS,4,2            ; @NL80211_RRF_DFS
	.comm	_NVM_CHANNEL_INDOOR_ONLY,8,3    ; @NVM_CHANNEL_INDOOR_ONLY
	.comm	_NL80211_RRF_NO_OUTDOOR,4,2     ; @NL80211_RRF_NO_OUTDOOR
	.comm	_NVM_CHANNEL_GO_CONCURRENT,8,3  ; @NVM_CHANNEL_GO_CONCURRENT
	.comm	_NL80211_RRF_GO_CONCURRENT,4,2  ; @NL80211_RRF_GO_CONCURRENT
	.no_dead_strip	_iwl_nvm_get_regdom_bw_flags
.subsections_via_symbols
