	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_fdt_resources
_enable_fdt_resources:                  ## @enable_fdt_resources
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	movl	24(%r14), %esi
	callq	_clk_set_parent_by_clk
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %r15
	jmp	LBB0_15
LBB0_2:
	movl	24(%r14), %edi
	movl	$594000000, %esi                ## imm = 0x2367B880
	xorl	%edx, %edx
	callq	_clk_set_freq
	leaq	L_.str.1(%rip), %r15
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_4:
	movl	8(%r14), %edi
	movl	$148500000, %esi                ## imm = 0x8D9EE20
	xorl	%edx, %edx
	callq	_clk_set_freq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movl	20(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_15
LBB0_7:
	movl	16(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_15
LBB0_9:
	movl	12(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %r15
	jmp	LBB0_15
LBB0_11:
	movl	8(%r14), %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %r15
	jmp	LBB0_15
LBB0_13:
	movl	4(%r14), %edi
	callq	_hwreset_deassert
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %r15
LBB0_15:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_device_printf
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot set parent for 'hdmi' clock\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot set frequency for 'hdmi' parent clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot enable  'hdmi' regulator\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot enable  'pll' regulator\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot enable  'vdd' regulator\n"

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

L_.str.6:                               ## @.str.6
	.asciz	"Cannot unreset  'hdmi' reset\n"

	.no_dead_strip	_enable_fdt_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_fdt_resources
_enable_fdt_resources:                  ; @enable_fdt_resources
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x19, #24]
	bl	_clk_set_parent_by_clk
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	ldr	w0, [x19, #24]
	mov	w1, #47232
	movk	w1, #9063, lsl #16
	mov	w2, #0
	bl	_clk_set_freq
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	mov	w1, #60960
	movk	w1, #2265, lsl #16
	mov	w2, #0
	bl	_clk_set_freq
	cbz	w0, LBB0_7
LBB0_4:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	ldr	w0, [x19]
	bl	_device_printf
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x19, #20]
	bl	_regulator_enable
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_9:
	ldr	w0, [x19, #16]
	bl	_regulator_enable
	cbz	w0, LBB0_11
; %bb.10:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_11:
	ldr	w0, [x19, #12]
	bl	_regulator_enable
	cbz	w0, LBB0_13
; %bb.12:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_13:
	ldr	w0, [x19, #8]
	bl	_clk_enable
	cbz	w0, LBB0_15
; %bb.14:
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_15:
	ldr	w0, [x19, #4]
	bl	_hwreset_deassert
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.16:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot set parent for 'hdmi' clock\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot set frequency for 'hdmi' parent clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot enable  'hdmi' regulator\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot enable  'pll' regulator\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot enable  'vdd' regulator\n"

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

l_.str.6:                               ; @.str.6
	.asciz	"Cannot unreset  'hdmi' reset\n"

	.no_dead_strip	_enable_fdt_resources
.subsections_via_symbols
