	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -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), %rsi
	jmp	LBB0_7
LBB0_2:
	cmpq	$0, 16(%r14)
	jne	LBB0_3
## %bb.4:
	movq	_TEGRA_POWERGATE_DIS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_TEGRA_POWERGATE_DISB@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	callq	_tegra_powergate_sequence_power_up
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movl	(%r14), %edi
	callq	_device_printf
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot set parent for 'dc' clock\n"

	.comm	_TEGRA_POWERGATE_DIS,4,2        ## @TEGRA_POWERGATE_DIS
	.comm	_TEGRA_POWERGATE_DISB,4,2       ## @TEGRA_POWERGATE_DISB
L_.str.1:                               ## @.str.1
	.asciz	"Cannot enable 'DIS' powergate\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_4
LBB0_2:
Lloh2:
	adrp	x8, _TEGRA_POWERGATE_DIS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TEGRA_POWERGATE_DIS@GOTPAGEOFF]
Lloh4:
	adrp	x9, _TEGRA_POWERGATE_DISB@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TEGRA_POWERGATE_DISB@GOTPAGEOFF]
	ldr	x10, [x19, #16]
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	ldp	w2, w1, [x19, #4]
	bl	_tegra_powergate_sequence_power_up
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	ldr	w0, [x19]
	bl	_device_printf
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot set parent for 'dc' clock\n"

	.comm	_TEGRA_POWERGATE_DIS,4,2        ; @TEGRA_POWERGATE_DIS
	.comm	_TEGRA_POWERGATE_DISB,4,2       ; @TEGRA_POWERGATE_DISB
l_.str.1:                               ; @.str.1
	.asciz	"Cannot enable 'DIS' powergate\n"

	.no_dead_strip	_enable_fdt_resources
.subsections_via_symbols
