	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_swreset
_hdmi_swreset:                          ## @hdmi_swreset
	.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, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	4(%rbx), %edi
	callq	_clk_prepare_enable
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_INFO
LBB0_2:
	movl	$0, (%rbx)
	movq	_HDMI_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	movq	_HDMI_CFG_SW_RST_EN@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hdmi_write
	movl	(%rbx), %r14d
	movl	8(%rbx), %r15d
	movq	_HDMI_TIMEOUT_SWRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	movq	_HDMI_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	movq	_HDMI_STA_SW_RST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_4:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	movl	(%r13), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_hdmi_write
	movl	4(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clk_disable_unprepare          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to prepare/enable hdmi_audio clk\n"

	.comm	_HDMI_CFG,4,2                   ## @HDMI_CFG
	.comm	_HDMI_CFG_SW_RST_EN,4,2         ## @HDMI_CFG_SW_RST_EN
	.comm	_HDMI_TIMEOUT_SWRESET,4,2       ## @HDMI_TIMEOUT_SWRESET
	.comm	_HDMI_STA,4,2                   ## @HDMI_STA
	.comm	_HDMI_STA_SW_RST,4,2            ## @HDMI_STA_SW_RST
L_.str.2:                               ## @.str.2
	.asciz	"Warning: HDMI sw reset timeout occurs\n"

	.no_dead_strip	_hdmi_swreset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_swreset
_hdmi_swreset:                          ; @hdmi_swreset
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w0, [x19, #4]
	bl	_clk_prepare_enable
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_INFO
LBB0_2:
	str	wzr, [x19]
Lloh4:
	adrp	x22, _HDMI_CFG@GOTPAGE
Lloh5:
	ldr	x22, [x22, _HDMI_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_hdmi_read
Lloh6:
	adrp	x23, _HDMI_CFG_SW_RST_EN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _HDMI_CFG_SW_RST_EN@GOTPAGEOFF]
	ldr	w8, [x23]
	orr	w1, w8, w0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_hdmi_write
	ldr	w20, [x19, #8]
	ldr	w21, [x19]
Lloh8:
	adrp	x8, _HDMI_TIMEOUT_SWRESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDMI_TIMEOUT_SWRESET@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wait_event_interruptible_timeout
Lloh11:
	adrp	x8, _HDMI_STA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDMI_STA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
Lloh14:
	adrp	x8, _HDMI_STA_SW_RST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDMI_STA_SW_RST@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_hdmi_read
	ldr	w8, [x23]
	bic	w1, w0, w8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_hdmi_write
	ldr	w0, [x19, #4]
	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
	b	_clk_disable_unprepare
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to prepare/enable hdmi_audio clk\n"

	.comm	_HDMI_CFG,4,2                   ; @HDMI_CFG
	.comm	_HDMI_CFG_SW_RST_EN,4,2         ; @HDMI_CFG_SW_RST_EN
	.comm	_HDMI_TIMEOUT_SWRESET,4,2       ; @HDMI_TIMEOUT_SWRESET
	.comm	_HDMI_STA,4,2                   ; @HDMI_STA
	.comm	_HDMI_STA_SW_RST,4,2            ; @HDMI_STA_SW_RST
l_.str.2:                               ; @.str.2
	.asciz	"Warning: HDMI sw reset timeout occurs\n"

	.no_dead_strip	_hdmi_swreset
.subsections_via_symbols
