	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_check_rxon_cmd
_iwl_check_rxon_cmd:                    ## @iwl_check_rxon_cmd
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %eax
	movq	_RXON_FLG_BAND_24G_MSK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movq	_RXON_FLG_TGJ_NARROW_BAND_MSK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_6:
	movq	_RXON_FLG_SHORT_SLOT_MSK@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	movl	$2, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	(%r14), %eax
LBB0_8:
	movq	_RXON_FLG_CCK_MSK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.9:
	movl	$3, %r12d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	_RXON_FLG_RADAR_DETECT_MSK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.5:
	movl	$1, %r12d
	leaq	L_.str.1(%rip), %rsi
LBB0_10:
	movq	%r15, %rdi
	callq	_IWL_WARN
	movl	%r12d, %edi
	callq	_BIT
	orl	%eax, %ebx
LBB0_11:
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testb	$1, %cl
	je	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	movl	$4, %edi
	callq	_BIT
	orl	%eax, %ebx
LBB0_13:
	movq	_IWL_RATE_6M_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r14)
	jne	LBB0_16
## %bb.14:
	movq	_IWL_RATE_1M_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 28(%r14)
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	movl	$5, %edi
	callq	_BIT
	orl	%eax, %ebx
LBB0_16:
	movq	32(%r14), %rdi
	callq	_le16_to_cpu
	cmpl	$2008, %eax                     ## imm = 0x7D8
	jl	LBB0_18
## %bb.17:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	movl	$6, %edi
	callq	_BIT
	orl	%eax, %ebx
LBB0_18:
	movl	(%r14), %eax
	movq	_RXON_FLG_CCK_MSK@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_RXON_FLG_SHORT_SLOT_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	movl	%eax, %esi
	notl	%esi
	testl	%esi, %edx
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	movl	$7, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	(%r14), %eax
	movl	(%r12), %ecx
LBB0_20:
	movq	_RXON_FLG_AUTO_DETECT_MSK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	%edx, %ecx
	movl	%eax, %esi
	notl	%esi
	testl	%esi, %ecx
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	movl	$8, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	(%r14), %eax
	movl	(%r12), %edx
LBB0_22:
	movq	_RXON_FLG_TGG_PROTECT_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %edx
	andl	%eax, %edx
	cmpl	%ecx, %edx
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	movl	$9, %edi
	callq	_BIT
	orl	%eax, %ebx
LBB0_24:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_26
## %bb.25:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	movl	$10, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	40(%r14), %rdi
LBB0_26:
	callq	_le16_to_cpu
	leaq	L_.str.11(%rip), %rsi
	movl	%ebx, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%ebx, %ebx
	cmovel	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXON_FLG_BAND_24G_MSK,4,2      ## @RXON_FLG_BAND_24G_MSK
	.comm	_RXON_FLG_TGJ_NARROW_BAND_MSK,4,2 ## @RXON_FLG_TGJ_NARROW_BAND_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check 2.4G: wrong narrow\n"

	.comm	_RXON_FLG_RADAR_DETECT_MSK,4,2  ## @RXON_FLG_RADAR_DETECT_MSK
L_.str.1:                               ## @.str.1
	.asciz	"check 2.4G: wrong radar\n"

	.comm	_RXON_FLG_SHORT_SLOT_MSK,4,2    ## @RXON_FLG_SHORT_SLOT_MSK
L_.str.2:                               ## @.str.2
	.asciz	"check 5.2G: not short slot!\n"

	.comm	_RXON_FLG_CCK_MSK,4,2           ## @RXON_FLG_CCK_MSK
L_.str.3:                               ## @.str.3
	.asciz	"check 5.2G: CCK!\n"

L_.str.4:                               ## @.str.4
	.asciz	"mac/bssid mcast!\n"

	.comm	_IWL_RATE_6M_MASK,4,2           ## @IWL_RATE_6M_MASK
	.comm	_IWL_RATE_1M_MASK,4,2           ## @IWL_RATE_1M_MASK
L_.str.5:                               ## @.str.5
	.asciz	"neither 1 nor 6 are basic\n"

L_.str.6:                               ## @.str.6
	.asciz	"aid > 2007\n"

L_.str.7:                               ## @.str.7
	.asciz	"CCK and short slot\n"

	.comm	_RXON_FLG_AUTO_DETECT_MSK,4,2   ## @RXON_FLG_AUTO_DETECT_MSK
L_.str.8:                               ## @.str.8
	.asciz	"CCK and auto detect\n"

	.comm	_RXON_FLG_TGG_PROTECT_MSK,4,2   ## @RXON_FLG_TGG_PROTECT_MSK
L_.str.9:                               ## @.str.9
	.asciz	"TGg but no auto-detect\n"

L_.str.10:                              ## @.str.10
	.asciz	"zero channel is invalid\n"

L_.str.11:                              ## @.str.11
	.asciz	"Invalid RXON (%#x), channel %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iwl_check_rxon_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_check_rxon_cmd
_iwl_check_rxon_cmd:                    ; @iwl_check_rxon_cmd
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _RXON_FLG_BAND_24G_MSK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXON_FLG_BAND_24G_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x24, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGE
Lloh4:
	ldr	x24, [x24, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGEOFF]
Lloh5:
	adrp	x23, _RXON_FLG_CCK_MSK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _RXON_FLG_CCK_MSK@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh7:
	adrp	x9, _RXON_FLG_TGJ_NARROW_BAND_MSK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RXON_FLG_TGJ_NARROW_BAND_MSK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_IWL_WARN
	mov	w0, #0
	bl	_BIT
	mov	x21, x0
	ldr	w8, [x19]
	b	LBB0_6
LBB0_3:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	mov	w21, #0
	b	LBB0_9
LBB0_5:
	mov	w21, #0
LBB0_6:
Lloh12:
	adrp	x9, _RXON_FLG_RADAR_DETECT_MSK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RXON_FLG_RADAR_DETECT_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.7:
	mov	w22, #1
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_IWL_WARN
	mov	w0, #2
	bl	_BIT
	mov	x21, x0
	ldr	w8, [x19]
LBB0_9:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	mov	w22, #3
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_IWL_WARN
	mov	x0, x22
	bl	_BIT
	orr	w21, w0, w21
LBB0_12:
	ldp	x8, x9, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w8, w9, w8
	tbz	w8, #0, LBB0_14
; %bb.13:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_IWL_WARN
	mov	w0, #4
	bl	_BIT
	orr	w21, w0, w21
LBB0_14:
	ldr	w8, [x19, #24]
Lloh23:
	adrp	x9, _IWL_RATE_6M_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IWL_RATE_6M_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.15:
	ldr	w8, [x19, #28]
Lloh26:
	adrp	x9, _IWL_RATE_1M_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IWL_RATE_1M_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.16:
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_IWL_WARN
	mov	w0, #5
	bl	_BIT
	orr	w21, w0, w21
LBB0_17:
	ldr	x0, [x19, #32]
	bl	_le16_to_cpu
	cmp	w0, #2008
	b.lt	LBB0_19
; %bb.18:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_IWL_WARN
	mov	w0, #6
	bl	_BIT
	orr	w21, w0, w21
LBB0_19:
	ldr	w8, [x19]
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w10, w10, w9
	bics	wzr, w10, w8
	b.ne	LBB0_21
; %bb.20:
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_IWL_WARN
	mov	w0, #7
	bl	_BIT
	orr	w21, w0, w21
	ldr	w8, [x19]
	ldr	w9, [x23]
LBB0_21:
Lloh35:
	adrp	x22, _RXON_FLG_AUTO_DETECT_MSK@GOTPAGE
Lloh36:
	ldr	x22, [x22, _RXON_FLG_AUTO_DETECT_MSK@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_23
; %bb.22:
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_IWL_WARN
	mov	w0, #8
	bl	_BIT
	orr	w21, w0, w21
	ldr	w8, [x19]
	ldr	w10, [x22]
LBB0_23:
Lloh39:
	adrp	x9, _RXON_FLG_TGG_PROTECT_MSK@GOTPAGE
Lloh40:
	ldr	x9, [x9, _RXON_FLG_TGG_PROTECT_MSK@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w10, w9, w10
	and	w8, w10, w8
	cmp	w8, w9
	b.ne	LBB0_25
; %bb.24:
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_IWL_WARN
	mov	w0, #9
	bl	_BIT
	orr	w21, w0, w21
LBB0_25:
	ldr	x0, [x19, #40]
	cbnz	x0, LBB0_27
; %bb.26:
Lloh44:
	adrp	x1, l_.str.10@PAGE
Lloh45:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_IWL_WARN
	mov	w0, #10
	bl	_BIT
	orr	w21, w0, w21
	ldr	x0, [x19, #40]
LBB0_27:
	bl	_le16_to_cpu
	mov	x3, x0
Lloh46:
	adrp	x1, l_.str.11@PAGE
Lloh47:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	mov	x2, x21
	bl	_WARN
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w0, wzr, w8, eq
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_RXON_FLG_BAND_24G_MSK,4,2      ; @RXON_FLG_BAND_24G_MSK
	.comm	_RXON_FLG_TGJ_NARROW_BAND_MSK,4,2 ; @RXON_FLG_TGJ_NARROW_BAND_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check 2.4G: wrong narrow\n"

	.comm	_RXON_FLG_RADAR_DETECT_MSK,4,2  ; @RXON_FLG_RADAR_DETECT_MSK
l_.str.1:                               ; @.str.1
	.asciz	"check 2.4G: wrong radar\n"

	.comm	_RXON_FLG_SHORT_SLOT_MSK,4,2    ; @RXON_FLG_SHORT_SLOT_MSK
l_.str.2:                               ; @.str.2
	.asciz	"check 5.2G: not short slot!\n"

	.comm	_RXON_FLG_CCK_MSK,4,2           ; @RXON_FLG_CCK_MSK
l_.str.3:                               ; @.str.3
	.asciz	"check 5.2G: CCK!\n"

l_.str.4:                               ; @.str.4
	.asciz	"mac/bssid mcast!\n"

	.comm	_IWL_RATE_6M_MASK,4,2           ; @IWL_RATE_6M_MASK
	.comm	_IWL_RATE_1M_MASK,4,2           ; @IWL_RATE_1M_MASK
l_.str.5:                               ; @.str.5
	.asciz	"neither 1 nor 6 are basic\n"

l_.str.6:                               ; @.str.6
	.asciz	"aid > 2007\n"

l_.str.7:                               ; @.str.7
	.asciz	"CCK and short slot\n"

	.comm	_RXON_FLG_AUTO_DETECT_MSK,4,2   ; @RXON_FLG_AUTO_DETECT_MSK
l_.str.8:                               ; @.str.8
	.asciz	"CCK and auto detect\n"

	.comm	_RXON_FLG_TGG_PROTECT_MSK,4,2   ; @RXON_FLG_TGG_PROTECT_MSK
l_.str.9:                               ; @.str.9
	.asciz	"TGg but no auto-detect\n"

l_.str.10:                              ; @.str.10
	.asciz	"zero channel is invalid\n"

l_.str.11:                              ; @.str.11
	.asciz	"Invalid RXON (%#x), channel %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iwl_check_rxon_cmd
.subsections_via_symbols
