	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_hif_map_service_to_pipe
_ath10k_sdio_hif_map_service_to_pipe:   ## @ath10k_sdio_hif_map_service_to_pipe
	.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, %r12
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_ath10k_sdio_priv
	movq	_ATH10K_HTC_EP_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	movq	(%r14), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rdx,%rsi,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_2
	jmp	LBB0_11
LBB0_4:
	movl	4(%rdx,%rsi,8), %edx
	movq	%rdx, (%r12)
	movq	%rdx, (%r15)
	movq	16(%rax), %rcx
	movq	24(%rax), %rsi
	xorl	%r15d, %r15d
	cmpl	$130, %ebx
	je	LBB0_9
## %bb.5:
	cmpl	$129, %ebx
	je	LBB0_12
## %bb.6:
	cmpl	$128, %ebx
	jne	LBB0_10
## %bb.7:
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	shlq	$4, %rdi
	movq	(%rcx,%rdi), %rsi
	movq	8(%rcx,%rdi), %rcx
	movq	8(%rax), %rdi
	movq	%rcx, (%rdi,%rdx,8)
	movq	(%rax), %rcx
	movq	%rsi, (%rcx,%rdx,8)
	movq	_ATH10K_DBG_SDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%rax), %rdi
	movq	8(%rax), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	(%rdi,%rdx,8), %r8
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_8
LBB0_9:
	xorl	%edi, %edi
	testq	%rsi, %rsi
	sete	%dil
	shlq	$4, %rdi
	movq	(%rcx,%rdi), %rsi
	movq	8(%rcx,%rdi), %rcx
	movq	8(%rax), %rdi
	movq	%rcx, (%rdi,%rdx,8)
	movq	(%rax), %rcx
	movq	%rsi, (%rcx,%rdx,8)
	movq	_ATH10K_DBG_SDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%rax), %rdi
	movq	8(%rax), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	(%rdi,%rdx,8), %r8
	leaq	L_.str.1(%rip), %rdx
LBB0_8:
	movq	%r14, %rdi
	callq	_ath10k_dbg
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_warn
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_HTC_EP_COUNT,4,2        ## @ATH10K_HTC_EP_COUNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH10K_DBG_SDIO,4,2            ## @ATH10K_DBG_SDIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdio wmi ctrl mbox_addr 0x%x mbox_size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"sdio htt data mbox_addr 0x%x mbox_size %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"unsupported HTC service id: %d\n"

	.no_dead_strip	_ath10k_sdio_hif_map_service_to_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_sdio_hif_map_service_to_pipe
_ath10k_sdio_hif_map_service_to_pipe:   ; @ath10k_sdio_hif_map_service_to_pipe
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_ath10k_sdio_priv
Lloh0:
	adrp	x8, _ATH10K_HTC_EP_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_HTC_EP_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	ldr	x9, [x19]
	add	x9, x9, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	cmp	w10, w20
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_12
LBB0_4:
	ldr	w8, [x9]
	str	x8, [x22]
	str	x8, [x21]
	ldp	x9, x10, [x0, #16]
	cmp	w20, #130
	b.eq	LBB0_8
; %bb.5:
	cmp	w20, #129
	b.eq	LBB0_10
; %bb.6:
	cmp	w20, #128
	b.ne	LBB0_11
; %bb.7:
	cmp	x10, #0
	cset	w10, ne
	add	x9, x9, w10, uxtw #4
	ldp	x10, x9, [x9]
	ldr	x11, [x0, #8]
	lsl	x8, x8, #3
	str	x9, [x11, x8]
	ldr	x9, [x0]
	str	x10, [x9, x8]
Lloh3:
	adrp	x9, _ATH10K_DBG_SDIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH10K_DBG_SDIO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldp	x10, x9, [x0]
	ldr	x3, [x9, x8]
	ldr	x4, [x10, x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	cmp	x10, #0
	cset	w10, eq
	add	x9, x9, w10, uxtw #4
	ldp	x10, x9, [x9]
	ldr	x11, [x0, #8]
	lsl	x8, x8, #3
	str	x9, [x11, x8]
	ldr	x9, [x0]
	str	x10, [x9, x8]
Lloh8:
	adrp	x9, _ATH10K_DBG_SDIO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATH10K_DBG_SDIO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	ldp	x10, x9, [x0]
	ldr	x3, [x9, x8]
	ldr	x4, [x10, x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_ath10k_dbg
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_warn
LBB0_12:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_HTC_EP_COUNT,4,2        ; @ATH10K_HTC_EP_COUNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH10K_DBG_SDIO,4,2            ; @ATH10K_DBG_SDIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdio wmi ctrl mbox_addr 0x%x mbox_size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"sdio htt data mbox_addr 0x%x mbox_size %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"unsupported HTC service id: %d\n"

	.no_dead_strip	_ath10k_sdio_hif_map_service_to_pipe
.subsections_via_symbols
