	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgx_lmac_save_filter
_bgx_lmac_save_filter:                  ## @bgx_lmac_save_filter
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	16(%r15), %rcx
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rcx,%rbx)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	decq	%rdi
	jne	LBB0_3
LBB0_6:
	cmpq	8(%r15), %rax
	jae	LBB0_8
## %bb.7:
	movq	16(%r15), %rcx
	shlq	$4, %rax
	movq	%rsi, (%rcx,%rax)
	movq	%rdx, %rdi
	callq	_BIT_ULL
	movq	(%r15), %rcx
	movq	16(%r15), %rdx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movl	%eax, 8(%rdx,%rsi)
	incq	%rcx
	movq	%rcx, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
	movq	%rdx, %rdi
	callq	_BIT_ULL
	movq	16(%r15), %rcx
	orl	%eax, 8(%rcx,%rbx)
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bgx_lmac_save_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgx_lmac_save_filter
_bgx_lmac_save_filter:                  ; @bgx_lmac_save_filter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x20, #0
	ldr	x9, [x19, #16]
	mov	x10, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x20]
	cmp	x11, x1
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #16
	subs	x10, x10, #1
	b.ne	LBB0_3
LBB0_5:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.6:
	ldr	x9, [x19, #16]
	lsl	x8, x8, #4
	str	x1, [x9, x8]
	mov	x0, x2
	bl	_BIT_ULL
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #16]
	ldr	x10, [x19]
	add	x9, x9, x10, lsl #4
	str	w8, [x9, #8]
	add	x8, x10, #1
	str	x8, [x19]
	b	LBB0_9
LBB0_7:
	mov	x0, x2
	bl	_BIT_ULL
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	ldr	w9, [x8, #8]
	orr	w9, w9, w0
	str	w9, [x8, #8]
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bgx_lmac_save_filter
.subsections_via_symbols
