	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cmd_mac_control
_mwifiex_cmd_mac_control:               ## @mwifiex_cmd_mac_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	_HostCmd_CMD_MAC_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	_S_DS_GEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movl	(%r14), %edi
	callq	_cpu_to_le32
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	(%rdi), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HostCmd_ACT_GEN_SET,8,3        ## @HostCmd_ACT_GEN_SET
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac_control: only support set cmd\n"

	.comm	_HostCmd_CMD_MAC_CONTROL,8,3    ## @HostCmd_CMD_MAC_CONTROL
	.comm	_S_DS_GEN,8,3                   ## @S_DS_GEN
	.no_dead_strip	_mwifiex_cmd_mac_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cmd_mac_control
_mwifiex_cmd_mac_control:               ; @mwifiex_cmd_mac_control
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x3
	mov	x19, x1
Lloh3:
	adrp	x8, _HostCmd_CMD_MAC_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HostCmd_CMD_MAC_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
Lloh6:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_cpu_to_le16
	str	x0, [x19]
	ldr	w0, [x20]
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #16]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x0]
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HostCmd_ACT_GEN_SET,8,3        ; @HostCmd_ACT_GEN_SET
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac_control: only support set cmd\n"

	.comm	_HostCmd_CMD_MAC_CONTROL,8,3    ; @HostCmd_CMD_MAC_CONTROL
	.comm	_S_DS_GEN,8,3                   ; @S_DS_GEN
	.no_dead_strip	_mwifiex_cmd_mac_control
.subsections_via_symbols
