	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_smd_set_bss_nw_type
_wcn36xx_smd_set_bss_nw_type:           ## @wcn36xx_smd_set_bss_nw_type
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	_WCN36XX_BAND
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_WCN36XX_HAL_11A_NW_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	testq	%r15, %r15
	je	LBB0_7
## %bb.3:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	_WCN36XX_HAL_11N_NW_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	(%r15), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testb	$127, (%rax,%rcx,4)
	je	LBB0_7
## %bb.6:
	movq	_WCN36XX_HAL_11G_NW_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_WCN36XX_HAL_11B_NW_TYPE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_WCN36XX_HAL_11A_NW_TYPE,4,2    ## @WCN36XX_HAL_11A_NW_TYPE
	.comm	_WCN36XX_HAL_11N_NW_TYPE,4,2    ## @WCN36XX_HAL_11N_NW_TYPE
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_WCN36XX_HAL_11G_NW_TYPE,4,2    ## @WCN36XX_HAL_11G_NW_TYPE
	.comm	_WCN36XX_HAL_11B_NW_TYPE,4,2    ## @WCN36XX_HAL_11B_NW_TYPE
	.no_dead_strip	_wcn36xx_smd_set_bss_nw_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_smd_set_bss_nw_type
_wcn36xx_smd_set_bss_nw_type:           ; @wcn36xx_smd_set_bss_nw_type
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_WCN36XX_BAND
	cmp	x21, x0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _WCN36XX_HAL_11A_NW_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WCN36XX_HAL_11A_NW_TYPE@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	cbz	x20, LBB0_7
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _WCN36XX_HAL_11N_NW_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WCN36XX_HAL_11N_NW_TYPE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	x8, [x20]
Lloh7:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	tst	w8, #0x7f
	b.eq	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _WCN36XX_HAL_11G_NW_TYPE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WCN36XX_HAL_11G_NW_TYPE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _WCN36XX_HAL_11B_NW_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WCN36XX_HAL_11B_NW_TYPE@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_WCN36XX_HAL_11A_NW_TYPE,4,2    ; @WCN36XX_HAL_11A_NW_TYPE
	.comm	_WCN36XX_HAL_11N_NW_TYPE,4,2    ; @WCN36XX_HAL_11N_NW_TYPE
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_WCN36XX_HAL_11G_NW_TYPE,4,2    ; @WCN36XX_HAL_11G_NW_TYPE
	.comm	_WCN36XX_HAL_11B_NW_TYPE,4,2    ; @WCN36XX_HAL_11B_NW_TYPE
	.no_dead_strip	_wcn36xx_smd_set_bss_nw_type
.subsections_via_symbols
