	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsi_band_check                 ## -- Begin function rsi_band_check
	.p2align	4, 0x90
_rsi_band_check:                        ## @rsi_band_check
	.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
	movq	32(%rdi), %r14
	movq	8(%r14), %rdx
	movq	16(%rdi), %rax
	movq	(%rsi), %rcx
	cmpq	%rcx, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, 24(%rbx)
	movq	%rcx, 16(%rbx)
	movq	%rcx, %rax
LBB0_2:
	movq	8(%rbx), %rcx
	movq	(%rdx), %rdx
	movq	_NL80211_CHAN_WIDTH_20_NOHT@GOTPCREL(%rip), %r8
	movq	_NL80211_CHAN_WIDTH_20@GOTPCREL(%rip), %r9
	movq	_BW_20MHZ@GOTPCREL(%rip), %rsi
	movq	%rsi, %rdi
	cmpq	(%r9), %rdx
	je	LBB0_4
## %bb.3:
	movq	_BW_40MHZ@GOTPCREL(%rip), %rdi
LBB0_4:
	movq	(%rbx), %r15
	cmpq	(%r8), %rdx
	cmoveq	%rsi, %rdi
	movq	(%rdi), %rdx
	movq	%rdx, (%rbx)
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %r8
	testq	%rdx, %rdx
	movq	_EP_2GHZ_40MHZ@GOTPCREL(%rip), %rdi
	cmoveq	_EP_2GHZ_20MHZ@GOTPCREL(%rip), %rdi
	movq	_EP_5GHZ_40MHZ@GOTPCREL(%rip), %rsi
	cmoveq	_EP_5GHZ_20MHZ@GOTPCREL(%rip), %rsi
	cmpq	(%r8), %rax
	cmoveq	%rdi, %rsi
	movq	(%rsi), %rax
	movq	%rax, 8(%rbx)
	cmpq	%rcx, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_rsi_program_bb_rf
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	(%rbx), %rdx
LBB0_7:
	cmpq	%r15, %rdx
	jne	LBB0_8
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_8:
	movq	(%r14), %rax
	movq	_RSI_DEV_9116@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_rsi_load_9116_bootup_params
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_rsi_load_bootup_params
	testl	%eax, %eax
	jne	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_rsi_load_radio_caps
	testl	%eax, %eax
	je	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ## @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_NL80211_CHAN_WIDTH_20,8,3      ## @NL80211_CHAN_WIDTH_20
	.comm	_BW_20MHZ,8,3                   ## @BW_20MHZ
	.comm	_BW_40MHZ,8,3                   ## @BW_40MHZ
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_EP_2GHZ_40MHZ,8,3              ## @EP_2GHZ_40MHZ
	.comm	_EP_2GHZ_20MHZ,8,3              ## @EP_2GHZ_20MHZ
	.comm	_EP_5GHZ_40MHZ,8,3              ## @EP_5GHZ_40MHZ
	.comm	_EP_5GHZ_20MHZ,8,3              ## @EP_5GHZ_20MHZ
	.comm	_RSI_DEV_9116,8,3               ## @RSI_DEV_9116
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsi_band_check                 ; -- Begin function rsi_band_check
	.p2align	2
_rsi_band_check:                        ; @rsi_band_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, [x0, #32]
	ldr	x10, [x20, #8]
	ldp	x8, x9, [x0, #8]
	ldr	x11, [x1]
	cmp	x9, x11
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x19, #24]
	str	x11, [x19, #16]
	mov	x9, x11
LBB0_2:
	ldr	x21, [x19]
	ldr	x10, [x10]
Lloh0:
	adrp	x11, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGEOFF]
Lloh2:
	adrp	x12, _NL80211_CHAN_WIDTH_20@GOTPAGE
Lloh3:
	ldr	x12, [x12, _NL80211_CHAN_WIDTH_20@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
Lloh5:
	ldr	x12, [x12]
	cmp	x10, x12
	ccmp	x10, x11, #4, ne
Lloh6:
	adrp	x10, _BW_20MHZ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BW_20MHZ@GOTPAGEOFF]
Lloh8:
	adrp	x11, _BW_40MHZ@GOTPAGE
Lloh9:
	ldr	x11, [x11, _BW_40MHZ@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	ldr	x10, [x10]
Lloh10:
	adrp	x11, _NL80211_BAND_2GHZ@GOTPAGE
Lloh11:
	ldr	x11, [x11, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	str	x10, [x19]
Lloh12:
	ldr	x11, [x11]
Lloh13:
	adrp	x12, _EP_2GHZ_20MHZ@GOTPAGE
Lloh14:
	ldr	x12, [x12, _EP_2GHZ_20MHZ@GOTPAGEOFF]
Lloh15:
	adrp	x13, _EP_2GHZ_40MHZ@GOTPAGE
Lloh16:
	ldr	x13, [x13, _EP_2GHZ_40MHZ@GOTPAGEOFF]
	cmp	x10, #0
	csel	x12, x12, x13, eq
Lloh17:
	adrp	x13, _EP_5GHZ_20MHZ@GOTPAGE
Lloh18:
	ldr	x13, [x13, _EP_5GHZ_20MHZ@GOTPAGEOFF]
Lloh19:
	adrp	x14, _EP_5GHZ_40MHZ@GOTPAGE
Lloh20:
	ldr	x14, [x14, _EP_5GHZ_40MHZ@GOTPAGEOFF]
	csel	x13, x13, x14, eq
	cmp	x9, x11
	csel	x9, x12, x13, eq
	ldr	x9, [x9]
	str	x9, [x19, #8]
	cmp	x9, x8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_rsi_program_bb_rf
	cbnz	w0, LBB0_11
; %bb.4:
	ldr	x10, [x19]
LBB0_5:
	cmp	x10, x21
	b.ne	LBB0_7
LBB0_6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	ldr	x8, [x20]
Lloh21:
	adrp	x9, _RSI_DEV_9116@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RSI_DEV_9116@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	bl	_rsi_load_9116_bootup_params
	cbnz	w0, LBB0_11
	b	LBB0_10
LBB0_9:
	bl	_rsi_load_bootup_params
	cbnz	w0, LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_rsi_load_radio_caps
	cbz	w0, LBB0_6
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ; @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_NL80211_CHAN_WIDTH_20,8,3      ; @NL80211_CHAN_WIDTH_20
	.comm	_BW_20MHZ,8,3                   ; @BW_20MHZ
	.comm	_BW_40MHZ,8,3                   ; @BW_40MHZ
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_EP_2GHZ_40MHZ,8,3              ; @EP_2GHZ_40MHZ
	.comm	_EP_2GHZ_20MHZ,8,3              ; @EP_2GHZ_20MHZ
	.comm	_EP_5GHZ_40MHZ,8,3              ; @EP_5GHZ_40MHZ
	.comm	_EP_5GHZ_20MHZ,8,3              ; @EP_5GHZ_20MHZ
	.comm	_RSI_DEV_9116,8,3               ; @RSI_DEV_9116
.subsections_via_symbols
