	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_rule
_parse_rule:                            ## @parse_rule
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	movl	$0, (%rsi)
	movsbl	(%rdx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movb	(%r15), %cl
	orb	$32, %cl
	movq	%rbx, %rax
	cmpb	$98, %cl
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r15), %r14
	movb	1(%r15), %cl
	leal	-48(%rcx), %edx
	cmpb	$8, %dl
	ja	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addb	$-48, %cl
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %esi
	addl	%esi, %edx
	movl	%edx, (%rax)
	movzbl	1(%r14), %ecx
	incq	%r14
	leal	-48(%rcx), %esi
	cmpb	$9, %sil
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%r14), %r15
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %r15
	cmpb	$47, %cl
	cmoveq	%r15, %r14
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	(%r14), %esi
	movq	%r13, %rdi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_2
LBB0_10:
	cmpb	$0, (%r14)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_11
	jmp	LBB0_14
LBB0_12:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	-64(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_13
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_13:
	movl	%eax, %ecx
	andl	$511, %ecx                      ## imm = 0x1FF
	movl	%ecx, (%rbx)
	shrq	$9, %rax
	movl	%eax, (%r12)
LBB0_14:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bBsS"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid rule code '%s' provided\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_parse_rule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_rule
_parse_rule:                            ; @parse_rule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [x0]
	str	wzr, [x1]
	ldrsb	w1, [x2]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strchr
	cbz	x0, LBB0_9
; %bb.1:
	mov	w24, #1
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	mov	x25, x19
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldrb	w8, [x25]
	orr	w8, w8, #0x20
	cmp	w8, #98
	csel	x10, x22, x21, eq
	mov	x8, x25
	ldrb	w9, [x8, #1]!
	sub	w11, w9, #48
	cmp	w11, #8
	b.hi	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x10]
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w9, w9, #48
	lsl	w9, w24, w9
	add	w11, w11, w9
	str	w11, [x10]
	ldrb	w9, [x8, #1]!
	sub	w12, w9, #48
	cmp	w12, #9
	b.lo	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x25, x8, #1
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #2
	cmp	w9, #47
	csel	x26, x25, x8, eq
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsb	w1, [x26]
	mov	x0, x23
	bl	_strchr
	cbnz	x0, LBB0_2
LBB0_8:
	ldrb	w8, [x26]
	cbnz	w8, LBB0_10
	b	LBB0_12
LBB0_9:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_11
LBB0_10:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_av_log
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_AVERROR
LBB0_11:
	and	w8, w0, #0x1ff
	str	w8, [x22]
	lsr	x8, x0, #9
	str	w8, [x21]
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bBsS"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid rule code '%s' provided\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_parse_rule
.subsections_via_symbols
