	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_set_antenna
_mwifiex_cfg80211_set_antenna:          ## @mwifiex_cfg80211_set_antenna
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r12d
	callq	_mwifiex_cfg80211_get_adapter
	movq	%rax, %r13
	movq	_MWIFIEX_BSS_ROLE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_mwifiex_get_priv
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.2:
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	_HT_STREAM_2X2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	cmpl	$1, %r12d
	jne	LBB0_15
## %bb.4:
	cmpl	$1, %ebx
	jne	LBB0_15
## %bb.5:
	movq	_HT_STREAM_1X1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	cmpq	$0, 40(%r13)
	je	LBB0_18
## %bb.6:
	movq	_MWIFIEX_11AC_MCS_MAP_1X1@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	cmpl	%ebx, %r12d
	jne	LBB0_14
## %bb.8:
	leal	-1(%r12), %eax
	testl	%eax, %r12d
	je	LBB0_10
## %bb.9:
	movl	8(%r13), %edi
	callq	_BIT
	decl	%eax
	cmpl	%r12d, %eax
	jne	LBB0_14
LBB0_10:
	movl	8(%r13), %edi
	callq	_BIT
	decl	%eax
	cmpl	%r12d, %eax
	jne	LBB0_24
## %bb.11:
	movq	(%r14), %rax
	cmpl	$2, (%rax)
	jl	LBB0_24
## %bb.12:
	movq	_RF_ANTENNA_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_24:
	movl	%r12d, %ebx
	jmp	LBB0_25
LBB0_14:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_15:
	movq	%rax, 16(%r13)
	cmpq	$0, 40(%r13)
	je	LBB0_18
## %bb.16:
	movq	_MWIFIEX_11AC_MCS_MAP_2X2@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
LBB0_18:
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_25
## %bb.19:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r12
	movl	%eax, %ecx
	cmpq	%rcx, %r12
	jae	LBB0_23
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	16(%r13), %rdi
	callq	_GET_RXMCSSUPP
	movl	%eax, %r14d
	movl	8(%r13), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	%r14d, %edx
	callq	_memset
	movl	(%r15), %eax
	jmp	LBB0_20
LBB0_23:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_25:
	movl	%r12d, -56(%rbp)
	movl	%ebx, -52(%rbp)
	movq	_HostCmd_CMD_RF_ANTENNA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BSS_ROLE_ANY,4,2       ## @MWIFIEX_BSS_ROLE_ANY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_HT_STREAM_2X2,8,3              ## @HT_STREAM_2X2
	.comm	_RF_ANTENNA_AUTO,4,2            ## @RF_ANTENNA_AUTO
	.comm	_HT_STREAM_1X1,8,3              ## @HT_STREAM_1X1
	.comm	_MWIFIEX_11AC_MCS_MAP_1X1,4,2   ## @MWIFIEX_11AC_MCS_MAP_1X1
	.comm	_MWIFIEX_11AC_MCS_MAP_2X2,4,2   ## @MWIFIEX_11AC_MCS_MAP_2X2
	.comm	_NUM_NL80211_BANDS,4,2          ## @NUM_NL80211_BANDS
	.comm	_HostCmd_CMD_RF_ANTENNA,4,2     ## @HostCmd_CMD_RF_ANTENNA
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.no_dead_strip	_mwifiex_cfg80211_set_antenna
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_set_antenna
_mwifiex_cfg80211_set_antenna:          ; @mwifiex_cfg80211_set_antenna
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	bl	_mwifiex_cfg80211_get_adapter
	mov	x22, x0
Lloh0:
	adrp	x8, _MWIFIEX_BSS_ROLE_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_BSS_ROLE_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mwifiex_get_priv
	cbz	w20, LBB0_12
; %bb.1:
	cbz	w21, LBB0_12
; %bb.2:
	mov	x19, x0
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _HT_STREAM_2X2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HT_STREAM_2X2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	cmp	w20, #1
	b.ne	LBB0_13
; %bb.4:
	cmp	w21, #1
	b.ne	LBB0_13
; %bb.5:
Lloh6:
	adrp	x8, _HT_STREAM_1X1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HT_STREAM_1X1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x22, #16]
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_16
; %bb.6:
Lloh9:
	adrp	x8, _MWIFIEX_11AC_MCS_MAP_1X1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWIFIEX_11AC_MCS_MAP_1X1@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	cmp	w20, w21
	b.ne	LBB0_12
; %bb.8:
	sub	w8, w20, #1
	tst	w20, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x22, #8]
	bl	_BIT
	sub	w8, w0, #1
	cmp	w8, w20
	b.ne	LBB0_12
LBB0_10:
	ldr	w0, [x22, #8]
	bl	_BIT
	sub	w8, w0, #1
	cmp	w8, w20
	b.ne	LBB0_21
; %bb.11:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _RF_ANTENNA_AUTO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RF_ANTENNA_AUTO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, #1
	csel	w21, w9, w20, gt
	mov	x20, x21
	b	LBB0_22
LBB0_12:
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_13:
	str	x8, [x22, #16]
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_16
; %bb.14:
Lloh17:
	adrp	x8, _MWIFIEX_11AC_MCS_MAP_2X2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MWIFIEX_11AC_MCS_MAP_2X2@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	str	w8, [x22, #32]
LBB0_16:
Lloh19:
	adrp	x25, _NUM_NL80211_BANDS@GOTPAGE
Lloh20:
	ldr	x25, [x25, _NUM_NL80211_BANDS@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_22
; %bb.17:
	mov	x26, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, uxtw
	b.hs	LBB0_22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #24]
	ldr	x9, [x9]
	ldr	x23, [x9, x26, lsl #3]
	cbz	x23, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x22, #16]
	bl	_GET_RXMCSSUPP
	mov	x24, x0
	ldr	w2, [x22, #8]
	mov	x0, x23
	mov	w1, #0
	bl	_memset
	mov	x0, x23
	mov	w1, #255
	mov	x2, x24
	bl	_memset
	ldr	w8, [x25]
	b	LBB0_18
LBB0_21:
	mov	x21, x20
LBB0_22:
	stp	w20, w21, [sp, #8]
Lloh21:
	adrp	x8, _HostCmd_CMD_RF_ANTENNA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HostCmd_CMD_RF_ANTENNA@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w3, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BSS_ROLE_ANY,4,2       ; @MWIFIEX_BSS_ROLE_ANY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_HT_STREAM_2X2,8,3              ; @HT_STREAM_2X2
	.comm	_RF_ANTENNA_AUTO,4,2            ; @RF_ANTENNA_AUTO
	.comm	_HT_STREAM_1X1,8,3              ; @HT_STREAM_1X1
	.comm	_MWIFIEX_11AC_MCS_MAP_1X1,4,2   ; @MWIFIEX_11AC_MCS_MAP_1X1
	.comm	_MWIFIEX_11AC_MCS_MAP_2X2,4,2   ; @MWIFIEX_11AC_MCS_MAP_2X2
	.comm	_NUM_NL80211_BANDS,4,2          ; @NUM_NL80211_BANDS
	.comm	_HostCmd_CMD_RF_ANTENNA,4,2     ; @HostCmd_CMD_RF_ANTENNA
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.no_dead_strip	_mwifiex_cfg80211_set_antenna
.subsections_via_symbols
