	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_rsp_process        ## -- Begin function wcn36xx_smd_rsp_process
	.p2align	4, 0x90
_wcn36xx_smd_rsp_process:               ## @wcn36xx_smd_rsp_process
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	(%rcx), %rbx
	movq	_WCN36XX_DBG_SMD_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_wcn36xx_dbg_dump
	movl	(%r15), %esi
	leal	-128(%rsi), %eax
	cmpl	$45, %eax
	ja	LBB0_6
## %bb.1:
	movabsq	$67577013583871, %rcx           ## imm = 0x3D75FFE3BFFF
	btq	%rax, %rcx
	jae	LBB0_3
## %bb.2:
	movl	24(%rbx), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, (%rbx)
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_complete
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leal	12(%r14), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	%r14d, (%rax)
	movl	8(%rax), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	addq	$4, %r12
	leaq	16(%rbx), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movl	12(%rbx), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_WCN36XX_DBG_HAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wcn36xx_dbg
	jmp	LBB0_7
LBB0_4:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_wcn36xx_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wcn36xx_err
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_DBG_SMD_DUMP,4,2       ## @WCN36XX_DBG_SMD_DUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMD <<< "

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"Run out of memory while handling SMD_EVENT (%d)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WCN36XX_DBG_HAL,4,2            ## @WCN36XX_DBG_HAL
L_.str.2:                               ## @.str.2
	.asciz	"indication arrived\n"

L_.str.3:                               ## @.str.3
	.asciz	"SMD_EVENT (%d) not supported\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_rsp_process        ; -- Begin function wcn36xx_smd_rsp_process
	.p2align	2
_wcn36xx_smd_rsp_process:               ; @wcn36xx_smd_rsp_process
	.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	x19, x2
	mov	x20, x1
	ldr	x22, [x3]
Lloh0:
	adrp	x8, _WCN36XX_DBG_SMD_DUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_DBG_SMD_DUMP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_wcn36xx_dbg_dump
	ldr	w1, [x20]
	sub	w8, w1, #128
	cmp	w8, #45
	b.hi	LBB0_8
; %bb.1:
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #49151
	movk	x9, #65507, lsl #16
	movk	x9, #15733, lsl #32
	tst	x8, x9
	b.eq	LBB0_5
; %bb.2:
	ldr	w0, [x22, #24]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	str	w19, [x22]
	add	x0, x22, #20
	bl	_complete
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
LBB0_5:
	add	w0, w19, #12
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.6:
	mov	x21, x0
	str	w19, [x0]
	ldr	w0, [x0, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	add	x19, x22, #4
	mov	x0, x19
	bl	_spin_lock
	add	x0, x21, #4
	add	x1, x22, #16
	bl	_list_add_tail
	ldr	w0, [x22, #12]
	add	x1, x22, #8
	bl	_queue_work
	mov	x0, x19
	bl	_spin_unlock
Lloh8:
	adrp	x8, _WCN36XX_DBG_HAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WCN36XX_DBG_HAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wcn36xx_dbg
	b	LBB0_3
LBB0_7:
	ldr	w1, [x20]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wcn36xx_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_8:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_wcn36xx_err
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_DBG_SMD_DUMP,4,2       ; @WCN36XX_DBG_SMD_DUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMD <<< "

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"Run out of memory while handling SMD_EVENT (%d)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WCN36XX_DBG_HAL,4,2            ; @WCN36XX_DBG_HAL
l_.str.2:                               ; @.str.2
	.asciz	"indication arrived\n"

l_.str.3:                               ; @.str.3
	.asciz	"SMD_EVENT (%d) not supported\n"

.subsections_via_symbols
