	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_get_chan_type          ## -- Begin function mwifiex_get_chan_type
	.p2align	4, 0x90
_mwifiex_get_chan_type:                 ## @mwifiex_get_chan_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rsi
	callq	_mwifiex_get_chan_info
	movq	_NL80211_CHAN_HT20@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	-16(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_IS_11N_ENABLED
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_NL80211_CHAN_NO_HT@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_6:
	movl	-12(%rbp), %eax
	movq	_SEC_CHAN_ABOVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	movq	_NL80211_CHAN_HT40PLUS@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_4:
	movq	_NL80211_CHAN_HT20@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	_NL80211_CHAN_HT40MINUS@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CHAN_HT20,4,2          ## @NL80211_CHAN_HT20
	.comm	_NL80211_CHAN_NO_HT,4,2         ## @NL80211_CHAN_NO_HT
	.comm	_SEC_CHAN_ABOVE,4,2             ## @SEC_CHAN_ABOVE
	.comm	_NL80211_CHAN_HT40PLUS,4,2      ## @NL80211_CHAN_HT40PLUS
	.comm	_NL80211_CHAN_HT40MINUS,4,2     ## @NL80211_CHAN_HT40MINUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_get_chan_type          ; -- Begin function mwifiex_get_chan_type
	.p2align	2
_mwifiex_get_chan_type:                 ; @mwifiex_get_chan_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	add	x1, sp, #8
	bl	_mwifiex_get_chan_info
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _NL80211_CHAN_HT20@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NL80211_CHAN_HT20@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	ldr	w8, [sp, #8]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.4:
Lloh2:
	adrp	x20, _NL80211_CHAN_HT20@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NL80211_CHAN_HT20@GOTPAGEOFF]
	cmp	w8, #129
	b.ne	LBB0_2
; %bb.5:
	mov	x0, x19
	bl	_IS_11N_ENABLED
Lloh4:
	adrp	x8, _NL80211_CHAN_NO_HT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NL80211_CHAN_NO_HT@GOTPAGEOFF]
	cmp	w0, #0
	csel	x20, x8, x20, eq
	b	LBB0_2
LBB0_6:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _SEC_CHAN_ABOVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SEC_CHAN_ABOVE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _NL80211_CHAN_HT40MINUS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NL80211_CHAN_HT40MINUS@GOTPAGEOFF]
Lloh11:
	adrp	x11, _NL80211_CHAN_HT40PLUS@GOTPAGE
Lloh12:
	ldr	x11, [x11, _NL80211_CHAN_HT40PLUS@GOTPAGEOFF]
	cmp	w8, w9
	csel	x20, x11, x10, eq
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CHAN_HT20,4,2          ; @NL80211_CHAN_HT20
	.comm	_NL80211_CHAN_NO_HT,4,2         ; @NL80211_CHAN_NO_HT
	.comm	_SEC_CHAN_ABOVE,4,2             ; @SEC_CHAN_ABOVE
	.comm	_NL80211_CHAN_HT40PLUS,4,2      ; @NL80211_CHAN_HT40PLUS
	.comm	_NL80211_CHAN_HT40MINUS,4,2     ; @NL80211_CHAN_HT40MINUS
.subsections_via_symbols
