	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_or_set_position_hints
_validate_or_set_position_hints:        ## @validate_or_set_position_hints
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	testl	%edi, %edi
	jle	LBB0_22
## %bb.1:
	movl	$1, %r10d
	xorl	%edx, %edx
	xorl	%r11d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	addq	$24, %rdx
	cmpq	%rdi, %r11
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testq	%r11, %r11
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r9
	leaq	(%r11,%r11,2), %rcx
	leaq	(%r9,%rcx,8), %r14
	movq	16(%r9,%rcx,8), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r10d, %r10d
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	addq	$24, %rbx
	cmpq	%rbx, %rdx
	je	LBB0_16
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, 16(%r9,%rbx)
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r14), %ecx
	cmpl	$65534, %ecx                    ## imm = 0xFFFE
	jg	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	4(%r14), %r12d
	cmpl	$65534, %r12d                   ## imm = 0xFFFE
	jg	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r9,%rbx), %r13d
	cmpl	$65534, %r13d                   ## imm = 0xFFFE
	jg	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	4(%r9,%rbx), %r15d
	cmpl	$65534, %r15d                   ## imm = 0xFFFE
	jg	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$36863, %eax                    ## imm = 0x8FFF
	movl	8(%r9,%rbx), %r8d
	andl	%eax, %r8d
	addl	%r13d, %r8d
	cmpl	%r8d, %ecx
	movl	$36863, %r8d                    ## imm = 0x8FFF
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	8(%r14), %eax
	andl	%r8d, %eax
	addl	%ecx, %eax
	cmpl	%r13d, %eax
	jg	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	12(%r9,%rbx), %eax
	andl	%r8d, %eax
	addl	%r15d, %eax
	cmpl	%eax, %r12d
	jge	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	12(%r14), %eax
	andl	%r8d, %eax
	addl	%r12d, %eax
	cmpl	%r15d, %eax
	jg	LBB0_14
	jmp	LBB0_15
LBB0_17:
	testl	%r10d, %r10d
	je	LBB0_18
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	shlq	$3, %rdi
	leaq	(%rdi,%rdi,2), %rcx
	xorl	%edx, %edx
	movl	$36863, %esi                    ## imm = 0x8FFF
	xorl	%edi, %edi
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	addq	$24, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rax,%rdx)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%edi, (%rax,%rdx)
	movl	$0, 4(%rax,%rdx)
	movl	8(%rax,%rdx), %ebx
	andl	%esi, %ebx
	addl	%ebx, %edi
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_validate_or_set_position_hints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_or_set_position_hints
_validate_or_set_position_hints:        ; @validate_or_set_position_hints
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x9, #0
	mov	w10, #1
	mov	w11, #24
	mov	w12, #65534
	mov	w13, #36863
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x0, #8]
	madd	x14, x9, x11, x2
	add	x15, x14, #4
	ldr	x16, [x14, #16]
	add	x17, x14, #8
	add	x1, x14, #12
	add	x2, x2, #8
	mov	x3, x9
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	w10, #0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x2, x2, #24
	subs	x3, x3, #1
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x16, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x4, [x2, #8]
	cbz	x4, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w5, [x14]
	cmp	w5, w12
	b.gt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w4, [x15]
	cmp	w4, w12
	b.gt	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldur	w7, [x2, #-8]
	cmp	w7, w12
	b.gt	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldur	w6, [x2, #-4]
	cmp	w6, w12
	b.gt	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w19, [x2]
	and	w19, w19, w13
	add	w19, w19, w7
	cmp	w5, w19
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w19, [x17]
	and	w19, w19, w13
	add	w5, w19, w5
	cmp	w5, w7
	b.gt	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w5, [x2, #4]
	and	w5, w5, w13
	add	w5, w5, w6
	cmp	w4, w5
	b.ge	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w5, [x1]
	and	w5, w5, w13
	add	w4, w5, w4
	cmp	w4, w6
	b.gt	LBB0_5
	b	LBB0_6
LBB0_17:
	cbz	w10, LBB0_19
LBB0_18:
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	w9, #0
	ldr	x10, [x0, #8]
	add	x10, x10, #8
	mov	w11, #36863
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x10, x10, #24
	subs	x8, x8, #1
	b.eq	LBB0_18
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, #8]
	cbz	x12, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	stp	w9, wzr, [x10, #-8]
	ldr	w12, [x10]
	and	w12, w12, w11
	add	w9, w12, w9
	b	LBB0_20
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_validate_or_set_position_hints
.subsections_via_symbols
