	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cmd_rf_antenna
_mwifiex_cmd_rf_antenna:                ## @mwifiex_cmd_rf_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_HostCmd_CMD_RF_ANTENNA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_8
## %bb.2:
	movq	(%r12), %rax
	movl	(%rax), %eax
	movq	_HT_STREAM_2X2@GOTPCREL(%rip), %rcx
	movq	_S_DS_GEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	addl	$32, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r15)
	movq	_HostCmd_ACT_SET_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r15)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%r15)
	movq	_HostCmd_ACT_SET_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r15)
	movl	4(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 48(%r15)
	jmp	LBB0_8
LBB0_5:
	movq	(%r12), %rax
	movl	(%rax), %eax
	movq	_HT_STREAM_2X2@GOTPCREL(%rip), %rcx
	movq	_S_DS_GEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	addl	$32, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r15)
	movq	_HostCmd_ACT_GET_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r15)
	movq	_HostCmd_ACT_GET_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r15)
	jmp	LBB0_8
LBB0_4:
	addl	$16, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r15)
	movq	_HostCmd_ACT_SET_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r15)
	jmp	LBB0_8
LBB0_7:
	addl	$16, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r15)
	movq	_HostCmd_ACT_GET_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HostCmd_CMD_RF_ANTENNA,4,2     ## @HostCmd_CMD_RF_ANTENNA
	.comm	_HT_STREAM_2X2,4,2              ## @HT_STREAM_2X2
	.comm	_S_DS_GEN,4,2                   ## @S_DS_GEN
	.comm	_HostCmd_ACT_SET_TX,4,2         ## @HostCmd_ACT_SET_TX
	.comm	_HostCmd_ACT_SET_RX,4,2         ## @HostCmd_ACT_SET_RX
	.comm	_HostCmd_ACT_SET_BOTH,4,2       ## @HostCmd_ACT_SET_BOTH
	.comm	_HostCmd_ACT_GET_TX,4,2         ## @HostCmd_ACT_GET_TX
	.comm	_HostCmd_ACT_GET_RX,4,2         ## @HostCmd_ACT_GET_RX
	.comm	_HostCmd_ACT_GET_BOTH,4,2       ## @HostCmd_ACT_GET_BOTH
	.no_dead_strip	_mwifiex_cmd_rf_antenna
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cmd_rf_antenna
_mwifiex_cmd_rf_antenna:                ; @mwifiex_cmd_rf_antenna
	.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	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _HostCmd_CMD_RF_ANTENNA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_CMD_RF_ANTENNA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	cmp	w22, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w22, #128
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _HT_STREAM_2X2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HT_STREAM_2X2@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w10, w9
	b.ne	LBB0_6
; %bb.3:
	add	w0, w8, #32
	bl	_cpu_to_le16
	str	x0, [x19]
Lloh9:
	adrp	x8, _HostCmd_ACT_SET_TX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HostCmd_ACT_SET_TX@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #40]
	ldr	w0, [x20]
	bl	_cpu_to_le16
	str	x0, [x19, #56]
Lloh12:
	adrp	x8, _HostCmd_ACT_SET_RX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HostCmd_ACT_SET_RX@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #32]
	ldr	w0, [x20, #4]
	bl	_cpu_to_le16
	str	x0, [x19, #48]
	b	LBB0_8
LBB0_4:
	ldr	x8, [x21]
Lloh15:
	adrp	x9, _HT_STREAM_2X2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HT_STREAM_2X2@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w10, w9
	b.ne	LBB0_7
; %bb.5:
	add	w0, w8, #32
	bl	_cpu_to_le16
	str	x0, [x19]
Lloh21:
	adrp	x8, _HostCmd_ACT_GET_TX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HostCmd_ACT_GET_TX@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #40]
Lloh24:
	adrp	x8, _HostCmd_ACT_GET_RX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HostCmd_ACT_GET_RX@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #32]
	b	LBB0_8
LBB0_6:
	add	w0, w8, #16
	bl	_cpu_to_le16
	str	x0, [x19]
Lloh27:
	adrp	x8, _HostCmd_ACT_SET_BOTH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HostCmd_ACT_SET_BOTH@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #16]
	ldr	w0, [x20]
	bl	_cpu_to_le16
	str	x0, [x19, #24]
	b	LBB0_8
LBB0_7:
	add	w0, w8, #16
	bl	_cpu_to_le16
	str	x0, [x19]
Lloh30:
	adrp	x8, _HostCmd_ACT_GET_BOTH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HostCmd_ACT_GET_BOTH@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #16]
LBB0_8:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_HostCmd_CMD_RF_ANTENNA,4,2     ; @HostCmd_CMD_RF_ANTENNA
	.comm	_HT_STREAM_2X2,4,2              ; @HT_STREAM_2X2
	.comm	_S_DS_GEN,4,2                   ; @S_DS_GEN
	.comm	_HostCmd_ACT_SET_TX,4,2         ; @HostCmd_ACT_SET_TX
	.comm	_HostCmd_ACT_SET_RX,4,2         ; @HostCmd_ACT_SET_RX
	.comm	_HostCmd_ACT_SET_BOTH,4,2       ; @HostCmd_ACT_SET_BOTH
	.comm	_HostCmd_ACT_GET_TX,4,2         ; @HostCmd_ACT_GET_TX
	.comm	_HostCmd_ACT_GET_RX,4,2         ; @HostCmd_ACT_GET_RX
	.comm	_HostCmd_ACT_GET_BOTH,4,2       ; @HostCmd_ACT_GET_BOTH
	.no_dead_strip	_mwifiex_cmd_rf_antenna
.subsections_via_symbols
