	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_ptr_alignment
_calc_ptr_alignment:                    ## @calc_ptr_alignment
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %r9
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	movl	$128, %r10d
	xorl	%esi, %esi
LBB0_16:
	testb	$1, %r8b
	je	LBB0_23
## %bb.17:
	movq	(%r9,%rsi,8), %rcx
	movl	$128, %eax
	movq	%rcx, %rsi
	shrq	$32, %rsi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rcx, %rax
	cqto
	idivq	%rbx
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%ebx, %eax
	shrl	%eax
	testq	%rdx, %rdx
	je	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	testq	%rsi, %rsi
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_21
LBB0_1:
	movl	$128, %r10d
	jmp	LBB0_23
LBB0_4:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	movl	$128, %r10d
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r10d, %ebx
	cmovll	%ebx, %r10d
	addq	$2, %rsi
	cmpq	%r11, %rsi
	je	LBB0_16
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%r9,%rsi,8), %rcx
	movl	$128, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%rcx, %rax
	cqto
	idivq	%rbx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %eax
	shrl	%eax
	testq	%rdx, %rdx
	je	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %ebx
	movq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r10d, %ebx
	cmovll	%ebx, %r10d
	leaq	(,%rsi,8), %rax
	orq	$8, %rax
	movq	(%r9,%rax), %rcx
	movl	$128, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%rcx, %rax
	cqto
	idivq	%rbx
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	%ebx, %eax
	shrl	%eax
	testq	%rdx, %rdx
	je	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %ebx
	movq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_14
LBB0_22:
	cmpl	%r10d, %ebx
	cmovll	%ebx, %r10d
LBB0_23:
	movl	%r10d, 4(%rdi)
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_ptr_alignment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_ptr_alignment
_calc_ptr_alignment:                    ; @calc_ptr_alignment
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x10, #0
	ldr	x11, [x0, #8]
	mov	w9, #128
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	x12, [x11, x10, lsl #3]
	mov	w14, #128
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x13, x14
	mov	w14, w14
	sdiv	x15, x12, x14
	msub	x15, x15, x14, x12
	lsr	w14, w13, #1
	cbnz	x15, LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w13, w9
	csel	w9, w13, w9, lt
	add	x10, x10, #1
	cmp	x10, x8
	b.ne	LBB0_2
; %bb.5:
	str	w9, [x0, #4]
	ret
LBB0_6:
	mov	w9, #128
	str	w9, [x0, #4]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_ptr_alignment
.subsections_via_symbols
