	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_check_rxon_cmd              ## -- Begin function il_check_rxon_cmd
	.p2align	4, 0x90
_il_check_rxon_cmd:                     ## @il_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %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), %rdi
	xorl	%eax, %eax
	callq	_IL_WARN
	movl	(%rbx), %eax
	movl	$1, %r14d
	jmp	LBB0_4
LBB0_6:
	movq	_RXON_FLG_SHORT_SLOT_MSK@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_IL_WARN
	movl	(%rbx), %eax
	movl	$1, %r14d
LBB0_8:
	movq	_RXON_FLG_CCK_MSK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	movq	_RXON_FLG_RADAR_DETECT_MSK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	xorl	%eax, %eax
	callq	_IL_WARN
	movl	$1, %r14d
LBB0_11:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testb	$1, %cl
	je	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_IL_WARN
	movl	$1, %r14d
LBB0_13:
	movq	_RATE_6M_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	jne	LBB0_16
## %bb.14:
	movq	_RATE_1M_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 28(%rbx)
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_IL_WARN
	movl	$1, %r14d
LBB0_16:
	movl	36(%rbx), %edi
	callq	_le16_to_cpu
	cmpl	$2008, %eax                     ## imm = 0x7D8
	jl	LBB0_18
## %bb.17:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_IL_WARN
	movl	$1, %r14d
LBB0_18:
	movl	(%rbx), %eax
	movq	_RXON_FLG_CCK_MSK@GOTPCREL(%rip), %r15
	movl	(%r15), %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), %rdi
	xorl	%eax, %eax
	callq	_IL_WARN
	movl	(%rbx), %eax
	movl	(%r15), %ecx
	movl	$1, %r14d
LBB0_20:
	movq	_RXON_FLG_AUTO_DETECT_MSK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	%edx, %ecx
	movl	%eax, %esi
	notl	%esi
	testl	%esi, %ecx
	jne	LBB0_21
## %bb.24:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_IL_WARN
	movq	_RXON_FLG_TGG_PROTECT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r15), %ecx
	orl	%eax, %ecx
	andl	(%rbx), %ecx
	cmpl	%eax, %ecx
	je	LBB0_25
	jmp	LBB0_26
LBB0_21:
	movq	_RXON_FLG_TGG_PROTECT_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %edx
	andl	%eax, %edx
	cmpl	%ecx, %edx
	jne	LBB0_22
LBB0_25:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_IL_WARN
	jmp	LBB0_26
LBB0_22:
	testl	%r14d, %r14d
	je	LBB0_23
LBB0_26:
	movl	32(%rbx), %edi
	callq	_le16_to_cpu
	leaq	L_.str.10(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IL_WARN
	leaq	L_.str.11(%rip), %rdi
	callq	_IL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.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	_RATE_6M_MASK,4,2               ## @RATE_6M_MASK
	.comm	_RATE_1M_MASK,4,2               ## @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"

	.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	"Tuning to channel %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"Invalid RXON\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_check_rxon_cmd              ; -- Begin function il_check_rxon_cmd
	.p2align	2
_il_check_rxon_cmd:                     ; @il_check_rxon_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
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	x21, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RXON_FLG_SHORT_SLOT_MSK@GOTPAGEOFF]
Lloh5:
	adrp	x20, _RXON_FLG_CCK_MSK@GOTPAGE
Lloh6:
	ldr	x20, [x20, _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	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_WARN
	ldr	w8, [x19]
	mov	w22, #1
	b	LBB0_6
LBB0_3:
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	mov	w22, #0
	b	LBB0_9
LBB0_5:
	mov	w22, #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:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IL_WARN
	ldr	w8, [x19]
	mov	w22, #1
LBB0_9:
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_IL_WARN
	mov	w22, #1
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	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_IL_WARN
	mov	w22, #1
LBB0_14:
	ldr	w8, [x19, #24]
Lloh23:
	adrp	x9, _RATE_6M_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RATE_6M_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.15:
	ldr	w8, [x19, #28]
Lloh26:
	adrp	x9, _RATE_1M_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RATE_1M_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.16:
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_IL_WARN
	mov	w22, #1
LBB0_17:
	ldr	w0, [x19, #36]
	bl	_le16_to_cpu
	cmp	w0, #2008
	b.lt	LBB0_19
; %bb.18:
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_IL_WARN
	mov	w22, #1
LBB0_19:
	ldr	w8, [x19]
	ldr	w9, [x20]
	ldr	w10, [x21]
	orr	w10, w10, w9
	bics	wzr, w10, w8
	b.ne	LBB0_21
; %bb.20:
Lloh33:
	adrp	x0, l_.str.7@PAGE
Lloh34:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_IL_WARN
	ldr	w8, [x19]
	ldr	w9, [x20]
	mov	w22, #1
LBB0_21:
Lloh35:
	adrp	x20, _RXON_FLG_AUTO_DETECT_MSK@GOTPAGE
Lloh36:
	ldr	x20, [x20, _RXON_FLG_AUTO_DETECT_MSK@GOTPAGEOFF]
	ldr	w10, [x20]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_23
; %bb.22:
Lloh37:
	adrp	x0, l_.str.8@PAGE
Lloh38:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_IL_WARN
	ldr	w8, [x19]
	ldr	w9, [x20]
Lloh39:
	adrp	x10, _RXON_FLG_TGG_PROTECT_MSK@GOTPAGE
Lloh40:
	ldr	x10, [x10, _RXON_FLG_TGG_PROTECT_MSK@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w8, w9, w8
	cmp	w8, w10
	b.eq	LBB0_24
	b	LBB0_26
LBB0_23:
Lloh42:
	adrp	x9, _RXON_FLG_TGG_PROTECT_MSK@GOTPAGE
Lloh43:
	ldr	x9, [x9, _RXON_FLG_TGG_PROTECT_MSK@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w10, w9, w10
	and	w8, w10, w8
	cmp	w8, w9
	b.ne	LBB0_25
LBB0_24:
Lloh45:
	adrp	x0, l_.str.9@PAGE
Lloh46:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_IL_WARN
	b	LBB0_26
LBB0_25:
	cbz	w22, LBB0_28
LBB0_26:
	ldr	w0, [x19, #32]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh47:
	adrp	x0, l_.str.10@PAGE
Lloh48:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_IL_WARN
Lloh49:
	adrp	x0, l_.str.11@PAGE
Lloh50:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_IL_ERR
Lloh51:
	adrp	x8, _EINVAL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_27:
	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
	add	sp, sp, #64
	ret
LBB0_28:
	mov	w0, #0
	b	LBB0_27
	.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 AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.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	_RATE_6M_MASK,4,2               ; @RATE_6M_MASK
	.comm	_RATE_1M_MASK,4,2               ; @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"

	.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	"Tuning to channel %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"Invalid RXON\n"

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