	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a6xx_gmu_set_freq              ## -- Begin function a6xx_gmu_set_freq
	.p2align	4, 0x90
_a6xx_gmu_set_freq:                     ## @a6xx_gmu_set_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_adreno_gpu
	movq	%rax, %rdi
	callq	_to_a6xx_gpu
	cmpq	%rbx, (%rax)
	jne	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	8(%rax), %ecx
	xorl	%esi, %esi
	cmpl	$2, %ecx
	jl	LBB0_6
## %bb.2:
	decl	%ecx
	movq	16(%rax), %rdx
	movl	%ecx, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdx,%rsi,8)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdi
	jne	LBB0_3
## %bb.5:
	movl	%ecx, %esi
LBB0_6:
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___a6xx_gmu_set_freq            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a6xx_gmu_set_freq              ; -- Begin function a6xx_gmu_set_freq
	.p2align	2
_a6xx_gmu_set_freq:                     ; @a6xx_gmu_set_freq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_to_adreno_gpu
	bl	_to_a6xx_gpu
	ldr	x8, [x0]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w9, [x0, #8]
	cmp	w9, #2
	b.lt	LBB0_6
; %bb.3:
	mov	x8, #0
	sub	w1, w9, #1
	ldr	x9, [x0, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x8, lsl #3]
	cmp	x10, x19
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x1, x8
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w1, #0
	b	LBB0_8
LBB0_7:
	mov	x1, x8
LBB0_8:
                                        ; kill: def $w1 killed $w1 killed $x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___a6xx_gmu_set_freq
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
