	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdp_disable
_hdp_disable:                           ## @hdp_disable
	.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), %r12
	movq	8(%r12), %r14
	movq	16(%r12), %r13
	movq	_REG_HDMI_HPD_INT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_hdmi_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_msm_hdmi_set_mode
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_enable_hpd_clocks
	movq	%r14, %rdi
	callq	_pm_runtime_put_autosuspend
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_gpio_config
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_2:
	movq	%r14, %rdi
	callq	_pinctrl_pm_select_sleep_state
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_4:
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.5:
	leaq	L_.str.2(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_regulator_disable
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_HDMI_HPD_INT_CTRL,4,2      ## @REG_HDMI_HPD_INT_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to unconfigure GPIOs: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"pinctrl state chg failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to disable hpd regulator: %s (%d)\n"

	.no_dead_strip	_hdp_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdp_disable
_hdp_disable:                           ; @hdp_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x19, [x0]
	ldp	x20, x22, [x19, #8]
Lloh0:
	adrp	x8, _REG_HDMI_HPD_INT_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_HDMI_HPD_INT_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hdmi_write
	mov	x0, x19
	mov	w1, #0
	bl	_msm_hdmi_set_mode
	mov	x0, x19
	mov	w1, #0
	bl	_enable_hpd_clocks
	mov	x0, x20
	bl	_pm_runtime_put_autosuspend
	mov	x0, x19
	mov	w1, #0
	bl	_gpio_config
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_2:
	mov	x0, x20
	bl	_pinctrl_pm_select_sleep_state
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_4:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x23, #0
Lloh7:
	adrp	x21, l_.str.2@PAGE
Lloh8:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x23, lsl #2]
	bl	_regulator_disable
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #8]
	ldr	w2, [x8, x23, lsl #2]
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_dev_warn
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_HDMI_HPD_INT_CTRL,4,2      ; @REG_HDMI_HPD_INT_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to unconfigure GPIOs: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"pinctrl state chg failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to disable hpd regulator: %s (%d)\n"

	.no_dead_strip	_hdp_disable
.subsections_via_symbols
