	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_tlv_parse_mem_reqs
_ath10k_wmi_tlv_parse_mem_reqs:         ## @ath10k_wmi_tlv_parse_mem_reqs
	.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
	movq	_WMI_TLV_TAG_STRUCT_WLAN_HOST_MEM_REQ@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_9
## %bb.1:
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	(%r8), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpq	$0, (%rdi,%rbx,8)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_9:
	movq	_EPROTO@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, (%rdi,%rbx,8)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_TLV_TAG_STRUCT_WLAN_HOST_MEM_REQ,8,3 ## @WMI_TLV_TAG_STRUCT_WLAN_HOST_MEM_REQ
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ath10k_wmi_tlv_parse_mem_reqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_tlv_parse_mem_reqs
_ath10k_wmi_tlv_parse_mem_reqs:         ; @ath10k_wmi_tlv_parse_mem_reqs
	.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
Lloh0:
	adrp	x8, _WMI_TLV_TAG_STRUCT_WLAN_HOST_MEM_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_WLAN_HOST_MEM_REQ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x4
	mov	x19, x3
	ldr	x0, [x4]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x8, x21, lsl #3]
	cbz	x9, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _EPROTO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	mov	w0, #0
	str	x19, [x8, x21, lsl #3]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_TLV_TAG_STRUCT_WLAN_HOST_MEM_REQ,8,3 ; @WMI_TLV_TAG_STRUCT_WLAN_HOST_MEM_REQ
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ath10k_wmi_tlv_parse_mem_reqs
.subsections_via_symbols
