	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_icc_bcm_init
_qcom_icc_bcm_init:                     ## @qcom_icc_bcm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_cmd_db_read_addr
	movl	%eax, 36(%rbx)
	movl	32(%rbx), %edx
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	-32(%rbp), %rsi
	movl	%edx, %edi
	callq	_cmd_db_read_aux_data
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	32(%rbx), %ebx
	movq	%r14, %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, -32(%rbp)
	je	LBB0_6
## %bb.7:
	movl	12(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, 28(%rbx)
	movl	8(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, 24(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	(%rbx), %r8d
	xorl	%r14d, %r14d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.8:
	cmpl	$1, %r8d
	jne	LBB0_10
## %bb.9:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_6:
	movl	32(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	movl	%r8d, %edx
	andl	$-2, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rsi
	movq	(%rsi,%rcx,8), %rsi
	movq	(%rsi), %rdi
	movq	8(%rsi), %rax
	movq	%rbx, (%rax,%rdi,8)
	incq	%rdi
	movq	%rdi, (%rsi)
	movq	8(%rbx), %rax
	movq	8(%rax,%rcx,8), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rdi
	movq	%rbx, (%rdi,%rsi,8)
	incq	%rsi
	movq	%rsi, (%rax)
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_11
LBB0_12:
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	movq	8(%rbx), %rax
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movq	%rbx, (%rdx,%rcx,8)
	incq	%rcx
	movq	%rcx, (%rax)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s could not find RPMh address\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s command db read error (%ld)\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s command db missing or partial aux data\n"

	.no_dead_strip	_qcom_icc_bcm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_icc_bcm_init
_qcom_icc_bcm_init:                     ; @qcom_icc_bcm_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_cmd_db_read_addr
	str	w0, [x19, #36]
	ldr	w2, [x19, #32]
	cbz	w0, LBB0_3
; %bb.1:
	add	x1, sp, #8
	mov	x0, x2
	bl	_cmd_db_read_aux_data
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w19, [x19, #32]
	mov	x0, x21
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_11
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_4:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
	str	w0, [x19, #28]
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	str	w0, [x19, #24]
	ldr	d0, [x21]
	str	d0, [x19, #16]
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x8, #0
	lsl	x9, x9, #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	ldr	x10, [x10, x8]
	ldp	x12, x11, [x10]
	str	x19, [x11, x12, lsl #3]
	add	x11, x12, #1
	str	x11, [x10]
	add	x8, x8, #8
	cmp	x9, x8
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	ldr	w2, [x19, #32]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s could not find RPMh address\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s command db read error (%ld)\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s command db missing or partial aux data\n"

	.no_dead_strip	_qcom_icc_bcm_init
.subsections_via_symbols
