	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_supernode_atdepth_offset   ## -- Begin function fdt_supernode_atdepth_offset
	.p2align	4, 0x90
_fdt_supernode_atdepth_offset:          ## @fdt_supernode_atdepth_offset
	.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
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_FDT_ERR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_FDT_CHECK_HEADER
	testl	%r14d, %r14d
	js	LBB0_1
## %bb.2:
	movl	$0, -44(%rbp)
	testl	%r12d, %r12d
	js	LBB0_14
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	negl	%ebx
	testl	%r14d, %r14d
	cmovel	%r14d, %ebx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.8:
	xorl	%eax, %eax
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_fdt_next_node
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r12d, %eax
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %ecx
	cmpl	%r14d, %ecx
	cmovel	%eax, %ebx
	cmpl	%r12d, %eax
	jne	LBB0_9
	jmp	LBB0_5
LBB0_4:
	xorl	%ecx, %ecx
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%ecx, (%rax)
LBB0_7:
	cmpl	%r14d, %ecx
	jge	LBB0_18
LBB0_1:
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	testl	%eax, %eax
	jns	LBB0_14
## %bb.13:
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_14
## %bb.15:
	movq	_FDT_ERR_BADOFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %ebx
	addl	%eax, %ecx
	jne	LBB0_18
## %bb.16:
	movq	_FDT_ERR_BADSTRUCTURE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_FDT_ERR_BADOFFSET@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_INTERNAL,4,2           ## @FDT_ERR_INTERNAL
	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADOFFSET,4,2          ## @FDT_ERR_BADOFFSET
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ## @FDT_ERR_BADSTRUCTURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_supernode_atdepth_offset   ; -- Begin function fdt_supernode_atdepth_offset
	.p2align	2
_fdt_supernode_atdepth_offset:          ; @fdt_supernode_atdepth_offset
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _FDT_ERR_INTERNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_INTERNAL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_FDT_CHECK_HEADER
	tbnz	w19, #31, LBB0_11
; %bb.1:
	str	wzr, [sp, #12]
	tbnz	w21, #31, LBB0_16
; %bb.2:
	cmp	w19, #0
	csneg	w1, wzr, w23, eq
	cbz	w21, LBB0_8
; %bb.3:
	mov	x23, x1
	mov	w1, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x22
	bl	_fdt_next_node
	mov	x1, x0
	tbnz	w0, #31, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w1, w21
	b.gt	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, w19
	csel	w23, w1, w23, eq
	cmp	w1, w21
	b.ne	LBB0_4
; %bb.7:
	mov	x1, x23
	cbnz	x20, LBB0_9
	b	LBB0_10
LBB0_8:
	mov	w8, #0
	cbz	x20, LBB0_10
LBB0_9:
	str	w8, [x20]
LBB0_10:
	cmp	w8, w19
	b.ge	LBB0_18
LBB0_11:
Lloh3:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	tbz	w1, #31, LBB0_16
; %bb.13:
Lloh5:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w1, w8
	b.eq	LBB0_16
; %bb.14:
Lloh8:
	adrp	x8, _FDT_ERR_BADOFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FDT_ERR_BADOFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w1, w8
	b.ne	LBB0_18
; %bb.15:
Lloh11:
	adrp	x8, _FDT_ERR_BADSTRUCTURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FDT_ERR_BADSTRUCTURE@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh13:
	adrp	x8, _FDT_ERR_BADOFFSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FDT_ERR_BADOFFSET@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_18:
	mov	x0, x1
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_INTERNAL,4,2           ; @FDT_ERR_INTERNAL
	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADOFFSET,4,2          ; @FDT_ERR_BADOFFSET
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ; @FDT_ERR_BADSTRUCTURE
.subsections_via_symbols
