	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_snoc_clk_init
_ath10k_snoc_clk_init:                  ## @ath10k_snoc_clk_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_ath10k_snoc_priv
	movq	%rax, %r15
	movq	_clk_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	movq	$-16, %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r14,%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	_clk_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r12
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r14
	cmpl	$0, 16(%r14,%rbx)
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATH10K_DBG_SNOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r14,%rbx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	callq	_ath10k_dbg
	movq	24(%r14,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r14,%rbx), %edi
	callq	_clk_set_rate
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	%eax, %r13d
	movl	20(%r14,%rbx), %edx
	movq	24(%r14,%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_ath10k_err
	testl	%r12d, %r12d
	jne	LBB0_7
	jmp	LBB0_15
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%eax, %r13d
	movl	20(%r14,%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_ath10k_err
	testl	%r12d, %r12d
	je	LBB0_15
LBB0_7:
	incq	%r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	decq	%r12
	addq	$-16, %rbx
	cmpq	$1, %r12
	jbe	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edi
	testl	%edi, %edi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	callq	_clk_disable_unprepare
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_clk_cfg,4,2                    ## @clk_cfg
	.comm	_ATH10K_DBG_SNOC,4,2            ## @ATH10K_DBG_SNOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snoc clock %s being enabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set clock %s freq %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable clock %s\n"

	.no_dead_strip	_ath10k_snoc_clk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_snoc_clk_init
_ath10k_snoc_clk_init:                  ; @ath10k_snoc_clk_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
	bl	_ath10k_snoc_priv
	mov	x19, x0
Lloh0:
	adrp	x25, _clk_cfg@GOTPAGE
Lloh1:
	ldr	x25, [x25, _clk_cfg@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x24, #0
	mov	x23, #0
Lloh2:
	adrp	x26, _ATH10K_DBG_SNOC@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ATH10K_DBG_SNOC@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27, x24]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	w0, [x25]
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x23, w0, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19]
	ldr	w8, [x27, x24]
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	add	x21, x27, x24
	ldr	w3, [x21, #4]
	mov	x0, x20
	mov	x2, x22
	bl	_ath10k_dbg
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27, x24]
	bl	_clk_set_rate
	cbz	w0, LBB0_2
; %bb.7:
	mov	x21, x0
	add	x8, x27, x24
	ldr	w2, [x8, #4]
	ldr	x8, [x8, #8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x21, x0
	add	x8, x27, x24
	ldr	w2, [x8, #4]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_ath10k_err
	cbz	w23, LBB0_9
; %bb.12:
	sub	x20, x24, #16
	add	x22, x23, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	x22, x22, #1
	sub	x20, x20, #16
	cmp	x22, #1
	b.ls	LBB0_9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x20]
	cbz	w0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_clk_disable_unprepare
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_clk_cfg,4,2                    ; @clk_cfg
	.comm	_ATH10K_DBG_SNOC,4,2            ; @ATH10K_DBG_SNOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snoc clock %s being enabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set clock %s freq %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable clock %s\n"

	.no_dead_strip	_ath10k_snoc_clk_init
.subsections_via_symbols
