	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function huff_smallest_node
_huff_smallest_node:                    ## @huff_smallest_node
	.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
	testl	%esi, %esi
	jle	LBB0_15
## %bb.1:
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_8
## %bb.2:
	movl	$99999999, %r11d                ## imm = 0x5F5E0FF
	movl	$-1, %eax
	xorl	%ecx, %ecx
LBB0_3:
	testb	$1, %r8b
	je	LBB0_5
## %bb.4:
	cmpl	$0, (%rdi,%rcx,8)
	je	LBB0_14
LBB0_5:
	cmpl	$-1, %eax
	je	LBB0_15
LBB0_6:
	movslq	%eax, %rcx
	movl	$1, (%rdi,%rcx,8)
	jmp	LBB0_16
LBB0_8:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movl	$99999999, %r11d                ## imm = 0x5F5E0FF
	movl	$-1, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%rdi,%rcx,8), %esi
	testl	%esi, %esi
	setne	%r10b
	cmpl	%r11d, %esi
	setl	%dl
	testb	%dl, %r10b
	cmovnel	%esi, %r11d
	cmovnel	%ecx, %eax
	cmpl	$0, 8(%rdi,%rcx,8)
	je	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %r9
	je	LBB0_3
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdi,%rcx,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, 8(%rdi,%rcx,8)
	jne	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	12(%rdi,%rcx,8), %edx
	testl	%edx, %edx
	setne	%sil
	cmpl	%r11d, %edx
	setl	%r10b
	leal	1(%rcx), %ebx
	testb	%r10b, %sil
	cmovnel	%edx, %r11d
	cmovnel	%ebx, %eax
	jmp	LBB0_9
LBB0_14:
	movl	4(%rdi,%rcx,8), %edx
	cmpl	%r11d, %edx
	cmovgel	%eax, %ecx
	testl	%edx, %edx
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	cmpl	$-1, %eax
	jne	LBB0_6
LBB0_15:
	movl	$-1, %eax
LBB0_16:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_huff_smallest_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function huff_smallest_node
_huff_smallest_node:                    ; @huff_smallest_node
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, x0
	mov	x9, #0
	add	x10, x0, #4
	mov	w11, #57599
	movk	w11, #1525, lsl #16
	mov	w0, #-1
	mov	w12, w1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x10, x10, #8
	cmp	x12, x9
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x10, #-4]
	cbnz	w13, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x10]
	cmp	w13, #0
	cset	w14, ne
	cmp	w13, w11
	cset	w15, lt
	tst	w14, w15
	csel	w11, w13, w11, ne
	csel	w0, w9, w0, ne
	b	LBB0_2
LBB0_5:
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:
	sbfiz	x9, x0, #3, #32
	mov	w10, #1
	str	w10, [x8, x9]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_7:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_huff_smallest_node
.subsections_via_symbols
