	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_keep_alive_req     ## -- Begin function wcn36xx_smd_keep_alive_req
	.p2align	4, 0x90
_wcn36xx_smd_keep_alive_req:            ## @wcn36xx_smd_keep_alive_req
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wcn36xx_vif_to_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_WCN36XX_HAL_KEEP_ALIVE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_INIT_HAL_MSG
	movq	_WCN36XX_HAL_KEEP_ALIVE_NULL_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%ebx, %esi
	jne	LBB0_4
## %bb.1:
	movl	(%r15), %eax
	shlq	$32, %rax
	movq	_WCN36XX_KEEP_ALIVE_TIME_PERIOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orq	%rax, %rdx
	jmp	LBB0_2
LBB0_4:
	movq	_WCN36XX_HAL_KEEP_ALIVE_UNSOLICIT_ARP_RSP@GOTPCREL(%rip), %rax
                                        ## implicit-def: $rdx
	cmpl	%ebx, (%rax)
	jne	LBB0_5
LBB0_2:
	movl	8(%r14), %edi
	callq	_PREPARE_HAL_BUF
	movq	%r14, %rdi
	callq	_wcn36xx_smd_send_and_wait
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_9
LBB0_6:
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_wcn36xx_smd_rsp_status_check
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_wcn36xx_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_HAL_KEEP_ALIVE_REQ,4,2 ## @WCN36XX_HAL_KEEP_ALIVE_REQ
	.comm	_WCN36XX_HAL_KEEP_ALIVE_NULL_PKT,4,2 ## @WCN36XX_HAL_KEEP_ALIVE_NULL_PKT
	.comm	_WCN36XX_KEEP_ALIVE_TIME_PERIOD,4,2 ## @WCN36XX_KEEP_ALIVE_TIME_PERIOD
	.comm	_WCN36XX_HAL_KEEP_ALIVE_UNSOLICIT_ARP_RSP,4,2 ## @WCN36XX_HAL_KEEP_ALIVE_UNSOLICIT_ARP_RSP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown keep alive packet type %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Sending hal_keep_alive failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"hal_keep_alive response failed err=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_keep_alive_req     ; -- Begin function wcn36xx_smd_keep_alive_req
	.p2align	2
_wcn36xx_smd_keep_alive_req:            ; @wcn36xx_smd_keep_alive_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_wcn36xx_vif_to_priv
	mov	x21, x0
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _WCN36XX_HAL_KEEP_ALIVE_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_HAL_KEEP_ALIVE_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, #0
	bl	_INIT_HAL_MSG
Lloh3:
	adrp	x8, _WCN36XX_HAL_KEEP_ALIVE_NULL_PKT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WCN36XX_HAL_KEEP_ALIVE_NULL_PKT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	cmp	w1, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _WCN36XX_KEEP_ALIVE_TIME_PERIOD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WCN36XX_KEEP_ALIVE_TIME_PERIOD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	bfi	x2, x8, #32, #32
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _WCN36XX_HAL_KEEP_ALIVE_UNSOLICIT_ARP_RSP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WCN36XX_HAL_KEEP_ALIVE_UNSOLICIT_ARP_RSP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
                                        ; implicit-def: $x2
	cmp	w8, w20
	b.ne	LBB0_8
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_PREPARE_HAL_BUF
	mov	x0, x19
	bl	_wcn36xx_smd_send_and_wait
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldp	w1, w0, [x19, #4]
	bl	_wcn36xx_smd_rsp_status_check
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.6:
	str	x20, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_wcn36xx_err
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_wcn36xx_warn
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_HAL_KEEP_ALIVE_REQ,4,2 ; @WCN36XX_HAL_KEEP_ALIVE_REQ
	.comm	_WCN36XX_HAL_KEEP_ALIVE_NULL_PKT,4,2 ; @WCN36XX_HAL_KEEP_ALIVE_NULL_PKT
	.comm	_WCN36XX_KEEP_ALIVE_TIME_PERIOD,4,2 ; @WCN36XX_KEEP_ALIVE_TIME_PERIOD
	.comm	_WCN36XX_HAL_KEEP_ALIVE_UNSOLICIT_ARP_RSP,4,2 ; @WCN36XX_HAL_KEEP_ALIVE_UNSOLICIT_ARP_RSP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown keep alive packet type %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Sending hal_keep_alive failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"hal_keep_alive response failed err=%d\n"

.subsections_via_symbols
