	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_setup_clock
_hdmi_setup_clock:                      ## @hdmi_setup_clock
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_device_get_softc
	movq	%rax, %r12
	movl	4(%rax), %edi
	callq	_clk_disable
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_2:
	movl	%ebx, %edi
	callq	_clk_disable
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_HDMI_DC_CLOCK_MULTIPIER@GOTPCREL(%rip), %rax
	movl	%r15d, %ebx
	movl	(%rax), %r15d
	imull	%ebx, %r15d
	movl	%r15d, -48(%rbp)
	movl	8(%r12), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_clk_set_freq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r13d
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_6:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_clk_set_parent_by_clk
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r13d
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	movl	%ebx, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_clk_set_freq
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	4(%r12), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_clk_set_freq
	testl	%eax, %eax
	je	LBB0_13
LBB0_10:
	movl	%eax, %r13d
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_11:
	callq	_device_printf
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r13d
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_11
LBB0_15:
	movl	4(%r12), %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r13d
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_11
LBB0_17:
	leaq	-48(%rbp), %rsi
	movl	%ebx, %edi
	callq	_clk_get_freq
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r13d
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_11
LBB0_19:
	movl	-48(%rbp), %esi
	leaq	L_.str.8(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot disable 'hdmi' clock\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot disable display clock\n"

	.comm	_HDMI_DC_CLOCK_MULTIPIER,4,2    ## @HDMI_DC_CLOCK_MULTIPIER
L_.str.2:                               ## @.str.2
	.asciz	"Cannot set display pixel frequency\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot set parent clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot set display controller frequency\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot enable display clock\n"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot enable 'hdmi' clock\n"

L_.str.7:                               ## @.str.7
	.asciz	"Cannot get display controller frequency\n"

L_.str.8:                               ## @.str.8
	.asciz	"DC frequency: %llu\n"

	.no_dead_strip	_hdmi_setup_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_setup_clock
_hdmi_setup_clock:                      ; @hdmi_setup_clock
	.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
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_device_get_softc
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_clk_disable
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_2:
	mov	x0, x21
	bl	_clk_disable
	cbz	w0, LBB0_4
; %bb.3:
	mov	x19, x0
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_4:
Lloh4:
	adrp	x8, _HDMI_DC_CLOCK_MULTIPIER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDMI_DC_CLOCK_MULTIPIER@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	mul	w24, w8, w23
	str	w24, [sp, #12]
	ldr	w0, [x22, #8]
	mov	x1, x24
	mov	w2, #0
	bl	_clk_set_freq
	cbz	w0, LBB0_6
; %bb.5:
	mov	x19, x0
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_6:
	ldr	w1, [x22, #8]
	mov	x0, x21
	bl	_clk_set_parent_by_clk
	cbz	w0, LBB0_8
; %bb.7:
	mov	x19, x0
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_8:
	mov	x0, x21
	mov	x1, x24
	mov	w2, #0
	bl	_clk_set_freq
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x22, #4]
	mov	x1, x23
	mov	w2, #0
	bl	_clk_set_freq
	cbz	w0, LBB0_13
LBB0_10:
	mov	x19, x0
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_11:
	bl	_device_printf
LBB0_12:
	mov	x0, x19
	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
LBB0_13:
	mov	x0, x21
	bl	_clk_enable
	cbz	w0, LBB0_15
; %bb.14:
	mov	x19, x0
	ldr	w0, [x22]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_15:
	ldr	w0, [x22, #4]
	bl	_clk_enable
	cbz	w0, LBB0_17
; %bb.16:
	mov	x19, x0
	ldr	w0, [x22]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_17:
	add	x1, sp, #12
	mov	x0, x21
	bl	_clk_get_freq
	mov	x19, x0
	cbz	w0, LBB0_19
; %bb.18:
	ldr	w0, [x20]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_19:
	ldr	w1, [sp, #12]
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot disable 'hdmi' clock\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot disable display clock\n"

	.comm	_HDMI_DC_CLOCK_MULTIPIER,4,2    ; @HDMI_DC_CLOCK_MULTIPIER
l_.str.2:                               ; @.str.2
	.asciz	"Cannot set display pixel frequency\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot set parent clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot set display controller frequency\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot enable display clock\n"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot enable 'hdmi' clock\n"

l_.str.7:                               ; @.str.7
	.asciz	"Cannot get display controller frequency\n"

l_.str.8:                               ; @.str.8
	.asciz	"DC frequency: %llu\n"

	.no_dead_strip	_hdmi_setup_clock
.subsections_via_symbols
