	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_set_hs_params          ## -- Begin function mwifiex_set_hs_params
	.p2align	4, 0x90
_mwifiex_set_hs_params:                 ## @mwifiex_set_hs_params
	.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
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r13
	movq	%rdi, %r15
	movq	(%rdi), %r14
	cmpl	$129, %esi
	je	LBB0_18
## %bb.3:
	movl	$-1, %ebx
	cmpl	$128, %esi
	jne	LBB0_20
## %bb.4:
	cmpl	$0, 28(%r14)
	je	LBB0_6
## %bb.5:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_dbg
	jmp	LBB0_20
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_18:
	movq	(%r14), %rdi
	callq	_le32_to_cpu
	movq	%rax, 16(%r13)
	movups	8(%r14), %xmm0
	movups	%xmm0, (%r13)
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$0, 24(%r13)
	movq	16(%r13), %rdi
	je	LBB0_17
## %bb.7:
	movl	%edx, %r12d
	movq	_HS_CFG_CANCEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdi
	je	LBB0_8
## %bb.10:
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movq	8(%r13), %rax
	movq	%rax, 16(%r14)
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, 8(%r14)
	jmp	LBB0_14
LBB0_17:
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movups	(%r13), %xmm0
	movups	%xmm0, 8(%r14)
	jmp	LBB0_19
LBB0_8:
	movq	_MWIFIEX_IS_HS_CONFIGURED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	movq	(%r14), %rdi
	callq	_le32_to_cpu
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rdi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	jmp	LBB0_15
LBB0_13:
	movq	(%r14), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_cpu_to_le32
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_20
LBB0_14:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_15:
	movq	_HostCmd_CMD_802_11_HS_CFG_ENH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MWIFIEX_SYNC_CMD@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	cmpl	%r12d, (%rax)
	sete	%r9b
	movq	%r15, %rdi
	movl	$128, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_mwifiex_send_cmd
	movl	%eax, %ebx
	movq	16(%r13), %rax
	movq	_HS_CFG_CANCEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: Host Sleep IOCTL\tis blocked in UAPSD/PPS mode\n"

	.comm	_HS_CFG_CANCEL,8,3              ## @HS_CFG_CANCEL
	.comm	_MWIFIEX_IS_HS_CONFIGURED,4,2   ## @MWIFIEX_IS_HS_CONFIGURED
	.comm	_HostCmd_CMD_802_11_HS_CFG_ENH,4,2 ## @HostCmd_CMD_802_11_HS_CFG_ENH
	.comm	_MWIFIEX_SYNC_CMD,4,2           ## @MWIFIEX_SYNC_CMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_set_hs_params          ; -- Begin function mwifiex_set_hs_params
	.p2align	2
_mwifiex_set_hs_params:                 ; @mwifiex_set_hs_params
	.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
	cbz	x3, LBB0_6
; %bb.1:
	mov	x20, x3
	mov	x21, x0
	ldr	x19, [x0]
	cmp	w1, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_9
; %bb.4:
Lloh0:
	adrp	x8, _INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
LBB0_5:
	mov	w21, #-1
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19]
	bl	_le32_to_cpu
	mov	w21, #0
	str	x0, [x20, #16]
	ldp	x9, x8, [x19, #8]
	stp	x9, x8, [x20]
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
	ldr	w8, [x20, #24]
	ldr	x0, [x20, #16]
	cbz	w8, LBB0_14
; %bb.10:
	mov	x22, x2
Lloh8:
	adrp	x24, _HS_CFG_CANCEL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _HS_CFG_CANCEL@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.11:
	cbz	x0, LBB0_17
; %bb.12:
	bl	_cpu_to_le32
	str	x0, [x19]
	ldp	x8, x9, [x20]
	str	x9, [x19, #16]
	mov	x23, #0
	cbz	x8, LBB0_19
; %bb.13:
	str	x8, [x19, #8]
	b	LBB0_19
LBB0_14:
	bl	_cpu_to_le32
	mov	w21, #0
	ldp	x9, x8, [x20]
	stp	x9, x8, [x19, #8]
	str	x0, [x19]
	b	LBB0_8
LBB0_15:
Lloh10:
	adrp	x8, _MWIFIEX_IS_HS_CONFIGURED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MWIFIEX_IS_HS_CONFIGURED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbz	w0, LBB0_21
; %bb.16:
	ldr	x0, [x19]
	bl	_le32_to_cpu
	mov	x23, x0
	ldr	x0, [x20, #16]
	bl	_cpu_to_le32
	str	x0, [x19]
	b	LBB0_19
LBB0_17:
	ldr	x23, [x19]
	mov	x0, x8
	bl	_cpu_to_le32
	cmp	x23, x0
	b.eq	LBB0_5
; %bb.18:
	mov	x23, #0
LBB0_19:
Lloh13:
	adrp	x8, _HostCmd_CMD_802_11_HS_CFG_ENH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HostCmd_CMD_802_11_HS_CFG_ENH@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _MWIFIEX_SYNC_CMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MWIFIEX_SYNC_CMD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w22
	cset	w5, eq
	mov	x0, x21
	mov	w2, #128
	mov	w3, #0
	mov	x4, x19
	bl	_mwifiex_send_cmd
	mov	x21, x0
	ldr	x8, [x20, #16]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.20:
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x19]
	b	LBB0_8
LBB0_21:
	mov	w21, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: Host Sleep IOCTL\tis blocked in UAPSD/PPS mode\n"

	.comm	_HS_CFG_CANCEL,8,3              ; @HS_CFG_CANCEL
	.comm	_MWIFIEX_IS_HS_CONFIGURED,4,2   ; @MWIFIEX_IS_HS_CONFIGURED
	.comm	_HostCmd_CMD_802_11_HS_CFG_ENH,4,2 ; @HostCmd_CMD_802_11_HS_CFG_ENH
	.comm	_MWIFIEX_SYNC_CMD,4,2           ; @MWIFIEX_SYNC_CMD
.subsections_via_symbols
