	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_hdmi_phy_resource_init
_msm_hdmi_phy_resource_init:            ## @msm_hdmi_phy_resource_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, %r15
	movq	8(%rdi), %r14
	movq	24(%rdi), %r12
	movl	(%r12), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%r12), %esi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpl	$0, (%r12)
	jle	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r15), %rax
	movq	%r13, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_9:
	cmpl	$0, 4(%r12)
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_msm_clk_get
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15), %rax
	movq	%r13, (%rax,%rbx,8)
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_6:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_12:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_DRM_DEV_ERROR
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get phy regulator: %s (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get phy clock: %s (%d)\n"

	.no_dead_strip	_msm_hdmi_phy_resource_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_hdmi_phy_resource_init
_msm_hdmi_phy_resource_init:            ; @msm_hdmi_phy_resource_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x22, [x0, #24]
	ldr	x19, [x0, #8]
	ldr	w1, [x22]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w1, [x22, #4]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x20]
	cbz	x0, LBB0_11
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x19
	bl	_devm_regulator_get
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	str	x21, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_6:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x23, lsl #2]
	bl	_msm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20]
	str	x21, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x22, #4]
	cmp	x23, x8
	b.lt	LBB0_8
LBB0_10:
	mov	w20, #0
	b	LBB0_15
LBB0_11:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_12:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x8, [x22, #16]
	ldr	w2, [x8, x23, lsl #2]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x8, [x22, #8]
	ldr	w2, [x8, x23, lsl #2]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	mov	x0, x19
	mov	x3, x20
	bl	_DRM_DEV_ERROR
LBB0_15:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get phy regulator: %s (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get phy clock: %s (%d)\n"

	.no_dead_strip	_msm_hdmi_phy_resource_init
.subsections_via_symbols
