	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_resources_init
_hdmi_resources_init:                   ## @hdmi_resources_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	32(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DRM_DEV_DEBUG_KMS
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_DRM_DEV_ERROR
	movl	24(%r12), %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movl	24(%r12), %edi
	callq	_gpiod_to_irq
	movq	%rax, (%r12)
	testq	%rax, %rax
	js	LBB0_4
## %bb.6:
	movq	%r12, %rdi
	callq	_hdmi_clk_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hdmi_clk_set_parents
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:
	movq	_supply@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rdi,%rbx,4), %eax
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movq	16(%r12), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	%eax, %r15d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_5
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
LBB0_14:
	movq	%r14, %rdi
	callq	_DRM_DEV_ERROR
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_DRM_DEV_ERROR
	movl	(%r12), %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get_optional
	movl	%eax, 8(%r12)
	movl	%eax, %edi
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_16
LBB0_19:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hdmi_bridge_init               ## TAILCALL
LBB0_16:
	movl	8(%r12), %edi
	callq	_IS_ERR
	movl	8(%r12), %edi
	testq	%rax, %rax
	jne	LBB0_2
## %bb.17:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDMI resource init\n"

L_.str.1:                               ## @.str.1
	.asciz	"hpd"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.2:                               ## @.str.2
	.asciz	"cannot get hpd gpio property\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get GPIO irq\n"

	.comm	_supply,8,3                     ## @supply
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.4:                               ## @.str.4
	.asciz	"failed to get regulators\n"

L_.str.5:                               ## @.str.5
	.asciz	"hdmi-en"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.6:                               ## @.str.6
	.asciz	"failed to enable hdmi-en regulator\n"

	.no_dead_strip	_hdmi_resources_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_resources_init
_hdmi_resources_init:                   ; @hdmi_resources_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x19, [x0, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_DEBUG_KMS
Lloh2:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldr	w0, [x20, #24]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	ldr	w0, [x20, #24]
	bl	_gpiod_to_irq
	str	x0, [x20]
	tbnz	x0, #63, LBB0_13
; %bb.4:
	mov	x0, x20
	bl	_hdmi_clk_init
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	bl	_hdmi_clk_set_parents
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.6:
Lloh9:
	adrp	x21, _supply@GOTPAGE
Lloh10:
	ldr	x21, [x21, _supply@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	lsl	x8, x22, #2
	ldr	w9, [x0, x8]
	ldr	x10, [x20, #16]
	str	w9, [x10, x8]
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_8
LBB0_9:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x20, #16]
	mov	x0, x19
	bl	_devm_regulator_bulk_get
	cbz	w0, LBB0_15
; %bb.10:
	mov	x21, x0
Lloh11:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_14
; %bb.11:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	b	LBB0_14
LBB0_13:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldr	w21, [x20]
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get_optional
	str	w0, [x20, #8]
	bl	_PTR_ERR
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_17
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hdmi_bridge_init
LBB0_17:
	ldr	w0, [x20, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #8]
	cbnz	x8, LBB0_2
; %bb.18:
	bl	_regulator_enable
	cbz	w0, LBB0_16
; %bb.19:
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_12
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDMI resource init\n"

l_.str.1:                               ; @.str.1
	.asciz	"hpd"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.2:                               ; @.str.2
	.asciz	"cannot get hpd gpio property\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get GPIO irq\n"

	.comm	_supply,8,3                     ; @supply
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.4:                               ; @.str.4
	.asciz	"failed to get regulators\n"

l_.str.5:                               ; @.str.5
	.asciz	"hdmi-en"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.6:                               ; @.str.6
	.asciz	"failed to enable hdmi-en regulator\n"

	.no_dead_strip	_hdmi_resources_init
.subsections_via_symbols
