	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_fdt_resources
_get_fdt_resources:                     ## @get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	16(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_hwreset_get_by_ofw_name
	movl	(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	callq	_device_printf
	jmp	LBB0_8
LBB0_2:
	leaq	12(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdx
	xorl	%esi, %esi
	callq	_clk_get_by_ofw_name
	movl	(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	callq	_device_printf
	jmp	LBB0_8
LBB0_4:
	leaq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_clk_get_by_ofw_name
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_device_printf
	movl	%r12d, %r14d
	jmp	LBB0_8
LBB0_6:
	leaq	4(%rbx), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testl	%eax, %eax
	jg	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_device_printf
	movl	%r15d, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dc"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot get 'dc' reset\n"

L_.str.2:                               ## @.str.2
	.asciz	"parent"

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

L_.str.4:                               ## @.str.4
	.asciz	"Cannot get 'dc' clock\n"

L_.str.5:                               ## @.str.5
	.asciz	"nvidia,head"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot get 'nvidia,head' property\n"

	.no_dead_strip	_get_fdt_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_fdt_resources
_get_fdt_resources:                     ; @get_fdt_resources
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	add	x3, x19, #16
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_hwreset_get_by_ofw_name
	mov	x20, x0
	ldr	w0, [x19]
	cbz	w20, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
	add	x3, x19, #12
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_clk_get_by_ofw_name
	mov	x20, x0
	ldr	w0, [x19]
	cbz	w20, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
	add	x3, x19, #8
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_clk_get_by_ofw_name
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_6:
	bl	_device_printf
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x2, x19, #4
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	cmp	w0, #0
	b.le	LBB0_10
; %bb.9:
	mov	w20, #0
	b	LBB0_7
LBB0_10:
	mov	x20, x0
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_6
	.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
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dc"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot get 'dc' reset\n"

l_.str.2:                               ; @.str.2
	.asciz	"parent"

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

l_.str.4:                               ; @.str.4
	.asciz	"Cannot get 'dc' clock\n"

l_.str.5:                               ; @.str.5
	.asciz	"nvidia,head"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot get 'nvidia,head' property\n"

	.no_dead_strip	_get_fdt_resources
.subsections_via_symbols
