	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_add_filter2                 ## -- Begin function hb_add_filter2
	.p2align	4, 0x90
_hb_add_filter2:                        ## @hb_add_filter2
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get_int
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_hb_filter_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	callq	_hb_value_array_len
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_hb_value_array_get
	movq	%rax, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_hb_dict_get_int
	cmpl	%r13d, %eax
	jg	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_6
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_value_array_append          ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	callq	_hb_error
LBB0_2:
	leaq	-48(%rbp), %rdi
	callq	_hb_value_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_value_array_insert          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ID"

L_.str.1:                               ## @.str.1
	.asciz	"hb_add_filter2: Invalid filter ID %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_add_filter2                 ; -- Begin function hb_add_filter2
	.p2align	2
_hb_add_filter2:                        ; @hb_add_filter2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	str	x1, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get_int
	mov	x21, x0
	bl	_hb_filter_get
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_hb_value_array_len
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, x0
	mov	w23, #0
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_hb_value_array_get
	mov	x1, x24
	bl	_hb_dict_get_int
	cmp	w0, w21
	b.gt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	w22, w23
	b.ne	LBB0_4
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_hb_value_array_append
LBB0_8:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_hb_error
LBB0_9:
	add	x0, sp, #8
	bl	_hb_value_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_hb_value_array_insert
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ID"

l_.str.1:                               ; @.str.1
	.asciz	"hb_add_filter2: Invalid filter ID %d"

.subsections_via_symbols
