	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_get_next_port
_of_get_next_port:                      ## @of_get_next_port
	.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
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_of_get_parent
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_of_get_next_child
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_of_node_name_eq
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	%r14, %rdi
	callq	_of_node_put
	jmp	LBB0_12
LBB0_8:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_of_get_child_by_name
	movq	%rax, %rbx
	testq	%rax, %rax
	cmovneq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_get_child_by_name
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	%r14, %rax
	jmp	LBB0_13
LBB0_10:
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ports"

L_.str.1:                               ## @.str.1
	.asciz	"port"

	.no_dead_strip	_of_get_next_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_get_next_port
_of_get_next_port:                      ; @of_get_next_port
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_of_get_parent
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_of_get_next_child
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_of_node_name_eq
	cbz	w0, LBB0_4
LBB0_6:
	mov	x0, x20
	bl	_of_node_put
	b	LBB0_8
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	b	LBB0_10
LBB0_9:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_get_child_by_name
	mov	x19, x0
	cmp	x0, #0
	csel	x0, x20, x0, eq
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_get_child_by_name
	mov	x20, x0
	mov	x0, x19
	bl	_of_node_put
	mov	x0, x20
LBB0_10:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ports"

l_.str.1:                               ; @.str.1
	.asciz	"port"

	.no_dead_strip	_of_get_next_port
.subsections_via_symbols
