	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function br_should_become_root_port
_br_should_become_root_port:            ## @br_should_become_root_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_BR_STATE_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	48(%rdi), %r12
	callq	_br_is_designated_port
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	leaq	44(%rbx), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	jg	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$1, %r14d
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_br_get_port
	movq	%rax, %r15
	leaq	44(%rax), %rsi
	movq	%r13, %rdi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	js	LBB0_19
## %bb.8:
	jne	LBB0_1
## %bb.10:
	movq	16(%rbx), %rax
	addq	8(%rbx), %rax
	movq	16(%r15), %rcx
	addq	8(%r15), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_19
## %bb.11:
	jg	LBB0_1
## %bb.13:
	leaq	40(%rbx), %rdi
	movq	%r15, %rsi
	addq	$40, %rsi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	js	LBB0_19
## %bb.14:
	jne	LBB0_1
## %bb.16:
	movq	24(%r15), %rax
	cmpq	%rax, 24(%rbx)
	jl	LBB0_19
## %bb.17:
	movl	$0, %r14d
	jg	LBB0_19
## %bb.18:
	movq	32(%rbx), %rax
	xorl	%r14d, %r14d
	cmpq	32(%r15), %rax
	setl	%r14b
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_STATE_DISABLED,8,3          ## @BR_STATE_DISABLED
	.no_dead_strip	_br_should_become_root_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function br_should_become_root_port
_br_should_become_root_port:            ; @br_should_become_root_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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BR_STATE_DISABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BR_STATE_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #48]
	bl	_br_is_designated_port
	cbnz	x0, LBB0_3
; %bb.2:
	add	x22, x19, #44
	mov	x0, x21
	mov	x1, x22
	mov	w2, #8
	bl	_memcmp
	cmp	w0, #1
	b.ge	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	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_5:
	cbz	w20, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	bl	_br_get_port
	mov	x20, x0
	add	x1, x0, #44
	mov	x0, x22
	mov	w2, #8
	bl	_memcmp
	tbz	w0, #31, LBB0_8
LBB0_7:
	mov	w0, #1
	b	LBB0_4
LBB0_8:
	cbnz	w0, LBB0_3
; %bb.9:
	ldp	x8, x9, [x19, #8]
	add	x8, x9, x8
	ldp	x9, x10, [x20, #8]
	add	x9, x10, x9
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.10:
	b.gt	LBB0_3
; %bb.11:
	add	x0, x19, #40
	add	x1, x20, #40
	mov	w2, #8
	bl	_memcmp
	tbnz	w0, #31, LBB0_7
; %bb.12:
	cbnz	w0, LBB0_3
; %bb.13:
	ldr	x8, [x19, #24]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.14:
	b.gt	LBB0_3
; %bb.15:
	ldr	x8, [x19, #32]
	ldr	x9, [x20, #32]
	cmp	x8, x9
	cset	w0, lt
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_STATE_DISABLED,8,3          ; @BR_STATE_DISABLED
	.no_dead_strip	_br_should_become_root_port
.subsections_via_symbols
