	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_is_host_mem_allocated
_ath10k_wmi_is_host_mem_allocated:      ## @ath10k_wmi_is_host_mem_allocated
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	cmpl	%edx, 16(%rdi)
	jne	LBB0_18
## %bb.1:
	movl	$1, %eax
	testl	%edx, %edx
	jle	LBB0_18
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%edx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%r14,%r15,8), %rax
	movl	12(%rax), %edi
	callq	___le32_to_cpu
	movl	%eax, %r12d
	movq	(%r14,%r15,8), %rax
	movl	8(%rax), %edi
	callq	___le32_to_cpu
	movl	%eax, %r13d
	movq	(%r14,%r15,8), %rax
	movl	4(%rax), %edi
	callq	___le32_to_cpu
	movq	%r14, %rcx
	movl	%eax, %r14d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%r15,8), %rax
	movl	(%rax), %edi
	callq	___le32_to_cpu
	movq	_NUM_UNITS_IS_NUM_ACTIVE_PEERS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %r13d
	testl	%r13d, %r13d
	jne	LBB0_7
	jmp	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_NUM_UNITS_IS_NUM_PEERS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx), %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rcx
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r15
	movslq	%eax, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_17
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r12d, (%rcx,%r15,8)
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_round_up
	imull	%r13d, %eax
	movq	24(%rbx), %rcx
	cmpl	%eax, 4(%rcx,%r15,8)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	16(%rbx), %eax
	jmp	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_3
	jmp	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NUM_UNITS_IS_NUM_VDEVS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %r13d
	jmp	LBB0_7
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$1, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_UNITS_IS_NUM_ACTIVE_PEERS,4,2 ## @NUM_UNITS_IS_NUM_ACTIVE_PEERS
	.comm	_NUM_UNITS_IS_NUM_PEERS,4,2     ## @NUM_UNITS_IS_NUM_PEERS
	.comm	_NUM_UNITS_IS_NUM_VDEVS,4,2     ## @NUM_UNITS_IS_NUM_VDEVS
	.no_dead_strip	_ath10k_wmi_is_host_mem_allocated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_is_host_mem_allocated
_ath10k_wmi_is_host_mem_allocated:      ; @ath10k_wmi_is_host_mem_allocated
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0, #16]
	cmp	w8, w2
	b.ne	LBB0_17
; %bb.1:
	cmp	w2, #1
	b.lt	LBB0_19
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	mov	x24, #0
Lloh0:
	adrp	x25, _NUM_UNITS_IS_NUM_ACTIVE_PEERS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NUM_UNITS_IS_NUM_ACTIVE_PEERS@GOTPAGEOFF]
	mov	w28, w2
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	lsl	x26, x24, #3
	ldr	x8, [x19, x26]
	ldr	w0, [x8, #12]
	bl	___le32_to_cpu
	mov	x21, x0
	ldr	x8, [x19, x26]
	ldr	w0, [x8, #8]
	bl	___le32_to_cpu
	mov	x23, x0
	ldr	x8, [x19, x26]
	ldr	w0, [x8, #4]
	bl	___le32_to_cpu
	mov	x22, x0
	ldr	x8, [x19, x26]
	ldr	w0, [x8]
	bl	___le32_to_cpu
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cbnz	w8, LBB0_7
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x8, _NUM_UNITS_IS_NUM_PEERS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUM_UNITS_IS_NUM_PEERS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_15
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #4]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w8, #1
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x20, #16]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	mov	x26, #0
	ldr	x8, [x20, #24]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x26, x26, #1
	add	x27, x27, #8
	cmp	x26, w9, sxtw
	b.ge	LBB0_17
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x8, x27]
	cmp	w10, w21
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x22
	mov	w1, #4
	bl	_round_up
	mul	w9, w0, w23
	ldr	x8, [x20, #24]
	add	x10, x8, x27
	ldr	w10, [x10, #4]
	cmp	w10, w9
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w9, [x20, #16]
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	mov	w0, #1
	cmp	x24, x28
	b.ne	LBB0_3
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh5:
	adrp	x8, _NUM_UNITS_IS_NUM_VDEVS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NUM_UNITS_IS_NUM_VDEVS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #8]
	b	LBB0_7
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	w0, #1
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_UNITS_IS_NUM_ACTIVE_PEERS,4,2 ; @NUM_UNITS_IS_NUM_ACTIVE_PEERS
	.comm	_NUM_UNITS_IS_NUM_PEERS,4,2     ; @NUM_UNITS_IS_NUM_PEERS
	.comm	_NUM_UNITS_IS_NUM_VDEVS,4,2     ; @NUM_UNITS_IS_NUM_VDEVS
	.no_dead_strip	_ath10k_wmi_is_host_mem_allocated
.subsections_via_symbols
