	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ph_h                           ## -- Begin function ph_h
	.p2align	4, 0x90
_ph_h:                                  ## @ph_h
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	36(%rdi), %esi
	movq	24(%rdi), %rdx
	movq	%rbx, %rdi
	callq	_poly_h
	movl	%eax, %r15d
	movl	32(%r14), %esi
	movq	24(%r14), %rdx
	movq	%rbx, %rdi
	callq	_poly_h
	movl	%eax, %ebx
	addl	24(%r14), %ebx
	movl	16(%r14), %edi
	movl	%r15d, %esi
	callq	_get_bit
	movl	%eax, %r12d
	movl	16(%r14), %edi
	movl	%ebx, %esi
	callq	_get_bit
	cmpl	%eax, %r12d
	cmovel	%r15d, %ebx
	movq	(%r14), %rax
	movl	%ebx, %ecx
	sarl	$6, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %r12d
	movl	%ebx, %r15d
	andl	$63, %r15d
	sarl	$5, %ebx
	movl	%ebx, %eax
	andl	$-2, %eax
	cmpl	$32, %r15d
	jb	LBB0_2
## %bb.1:
	movq	8(%r14), %rcx
	orl	$1, %ebx
	cltq
	movl	(%rcx,%rax,4), %edi
	callq	_bits_cnt
	addl	%eax, %r12d
	addl	$-32, %r15d
	movl	%ebx, %eax
LBB0_2:
	movq	8(%r14), %rdx
	movl	$-1, %edi
	movl	%r15d, %ecx
	shll	%cl, %edi
	cltq
	notl	%edi
	andl	(%rdx,%rax,4), %edi
	callq	_bits_cnt
	addl	%r12d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ph_h                           ; -- Begin function ph_h
	.p2align	2
_ph_h:                                  ; @ph_h
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x0, #36]
	ldr	x2, [x0, #24]
	mov	x0, x20
	bl	_poly_h
	mov	x21, x0
	ldr	w1, [x19, #32]
	ldr	x2, [x19, #24]
	mov	x0, x20
	bl	_poly_h
	ldr	w8, [x19, #24]
	add	w20, w0, w8
	ldr	w0, [x19, #16]
	mov	x1, x21
	bl	_get_bit
	mov	x22, x0
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_get_bit
	cmp	w22, w0
	csel	w8, w21, w20, eq
	ldr	x9, [x19]
	asr	w10, w8, #6
	ldr	w20, [x9, w10, sxtw #2]
	and	w9, w8, #0x3f
	asr	w10, w8, #5
	and	w8, w10, #0xfffffffe
	subs	w21, w9, #32
	b.lo	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	orr	w22, w10, #0x1
	ldr	w0, [x9, w8, sxtw #2]
	bl	_bits_cnt
	add	w20, w20, w0
	mov	x8, x22
	mov	x9, x21
LBB0_2:
	ldr	x10, [x19, #8]
	ldr	w8, [x10, w8, sxtw #2]
	mov	w10, #-1
	lsl	w9, w10, w9
	bic	w0, w8, w9
	bl	_bits_cnt
	add	w0, w20, w0
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
