	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_get_channel
_mwifiex_cfg80211_get_channel:          ## @mwifiex_cfg80211_get_channel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	(%rsi), %edi
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %r12
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_GET_BSS_ROLE
	movq	_MWIFIEX_BSS_ROLE_UAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	leaq	24(%r12), %r13
	movq	%r13, %rdi
	callq	_cfg80211_chandef_valid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r13), %eax
	movl	%eax, (%r14)
	jmp	LBB0_8
LBB0_3:
	cmpq	$0, 16(%r12)
	je	LBB0_9
## %bb.4:
	movl	8(%r12), %edi
	callq	_mwifiex_band_to_radio_type
	movl	12(%r12), %edi
	movl	%eax, %esi
	callq	_ieee80211_channel_to_frequency
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ieee80211_get_channel
	movq	%rax, %rbx
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_mwifiex_get_chan_type
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	jmp	LBB0_7
LBB0_6:
	movq	_NL80211_CHAN_NO_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
LBB0_7:
	callq	_cfg80211_chandef_create
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ## @MWIFIEX_BSS_ROLE_UAP
	.comm	_NL80211_CHAN_NO_HT,4,2         ## @NL80211_CHAN_NO_HT
	.no_dead_strip	_mwifiex_cfg80211_get_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_get_channel
_mwifiex_cfg80211_get_channel:          ; @mwifiex_cfg80211_get_channel
	.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, x2
	mov	x21, x0
	ldr	w0, [x1]
	bl	_mwifiex_netdev_get_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _ENODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_GET_BSS_ROLE
Lloh3:
	adrp	x8, _MWIFIEX_BSS_ROLE_UAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWIFIEX_BSS_ROLE_UAP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	add	x22, x20, #24
	mov	x0, x22
	bl	_cfg80211_chandef_valid
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	w8, [x22]
	str	w8, [x19]
	b	LBB0_9
LBB0_3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w0, [x20, #8]
	bl	_mwifiex_band_to_radio_type
	mov	x1, x0
	ldr	w0, [x20, #12]
	bl	_ieee80211_channel_to_frequency
	mov	x1, x0
	mov	x0, x21
	bl	_ieee80211_get_channel
	mov	x21, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_mwifiex_get_chan_type
	mov	x2, x0
	b	LBB0_8
LBB0_6:
	neg	w0, w23
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _NL80211_CHAN_NO_HT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_CHAN_NO_HT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	bl	_cfg80211_chandef_create
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ; @MWIFIEX_BSS_ROLE_UAP
	.comm	_NL80211_CHAN_NO_HT,4,2         ; @NL80211_CHAN_NO_HT
	.no_dead_strip	_mwifiex_cfg80211_get_channel
.subsections_via_symbols
