	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bsde_parse_rule                ## -- Begin function bsde_parse_rule
	.p2align	4, 0x90
_bsde_parse_rule:                       ## @bsde_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	%rdx, %rdi
	movl	$12, %esi
	callq	_bzero
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.3:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdx
LBB0_2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_snprintf
	movl	$-1, %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpl	$2, %ebx
	jb	LBB0_17
## %bb.5:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r15d
	movl	$-1, %r14d
	movl	$1, %ebx
	leaq	L_.str.2(%rip), %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	cmovel	%ebx, %r14d
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_6
## %bb.7:
	cmpl	$-1, %r14d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_17
## %bb.8:
	cmpl	%eax, %r14d
	jge	LBB0_12
## %bb.9:
	movslq	%r14d, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx,8), %r13
	movl	$-1, %ebx
	movl	%r14d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	cmovel	%r12d, %ebx
	addq	$8, %r13
	incl	%r12d
	cmpl	%r12d, %r15d
	jne	LBB0_10
## %bb.11:
	cmpl	$-1, %ebx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_12
## %bb.13:
	leal	-1(%r14), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_bsde_parse_subject
	movl	$-1, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	notl	%r14d
	addl	%ebx, %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rsi
	addq	$8, %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rdx
	movl	%r14d, %edi
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_bsde_parse_object
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	incl	%ebx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	subl	%ebx, %edi
	movslq	%ebx, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_bsde_parse_mode
	xorl	%r15d, %r15d
	negl	%eax
	sbbl	%r15d, %r15d
	jmp	LBB0_16
LBB0_17:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_2
LBB0_12:
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rule must begin with subject"

L_.str.1:                               ## @.str.1
	.asciz	"subject"

L_.str.2:                               ## @.str.2
	.asciz	"object"

L_.str.3:                               ## @.str.3
	.asciz	"Rule must contain an object"

L_.str.4:                               ## @.str.4
	.asciz	"mode"

L_.str.5:                               ## @.str.5
	.asciz	"Rule must contain mode"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bsde_parse_rule                ; -- Begin function bsde_parse_rule
	.p2align	2
_bsde_parse_rule:                       ; @bsde_parse_rule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x28, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x2
	mov	w1, #12
	bl	_bzero
	cmp	w23, #0
	b.le	LBB0_2
; %bb.1:
	ldr	x0, [x22]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
LBB0_2:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x20
	mov	x1, x28
	bl	_snprintf
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	cmp	w23, #2
	b.lo	LBB0_17
; %bb.7:
	mov	w26, w23
	mov	w25, #-1
	mov	w19, #1
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22, x19, lsl #3]
	mov	x1, x24
	bl	_strcmp
	cmp	x0, #0
	csel	w25, w19, w25, eq
	add	x19, x19, #1
	cmp	x26, x19
	b.ne	LBB0_8
; %bb.9:
	cmn	w25, #1
	b.eq	LBB0_17
; %bb.10:
	cmp	w25, w23
	b.ge	LBB0_18
; %bb.11:
	sxtw	x8, w25
	stp	x8, x28, [sp]                   ; 16-byte Folded Spill
	mov	w27, #-1
	mov	x28, x25
	add	x19, x22, w25, sxtw #3
Lloh6:
	adrp	x24, l_.str.4@PAGE
Lloh7:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19], #8
	mov	x1, x24
	bl	_strcmp
	cmp	x0, #0
	csel	w27, w28, w27, eq
	add	w28, w28, #1
	cmp	w26, w28
	b.ne	LBB0_12
; %bb.13:
	cmn	w27, #1
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	b.eq	LBB0_18
; %bb.14:
	sub	w0, w25, #1
	add	x1, x22, #8
	add	x2, x21, #8
	mov	x3, x28
	mov	x4, x20
	bl	_bsde_parse_subject
	cbnz	w0, LBB0_4
; %bb.15:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x8, x8, #1
	sub	w0, w27, w8
	add	x1, x22, x8, lsl #3
	add	x2, x21, #4
	mov	x3, x28
	mov	x4, x20
	bl	_bsde_parse_object
	cbnz	w0, LBB0_4
; %bb.16:
	add	w8, w27, #1
	sub	w0, w23, w8
	add	x1, x22, w8, sxtw #3
	mov	x2, x21
	mov	x3, x28
	mov	x4, x20
	bl	_bsde_parse_mode
	cmp	w0, #0
	csetm	w0, ne
	b	LBB0_5
LBB0_17:
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_18:
Lloh10:
	adrp	x2, l_.str.5@PAGE
Lloh11:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rule must begin with subject"

l_.str.1:                               ; @.str.1
	.asciz	"subject"

l_.str.2:                               ; @.str.2
	.asciz	"object"

l_.str.3:                               ; @.str.3
	.asciz	"Rule must contain an object"

l_.str.4:                               ; @.str.4
	.asciz	"mode"

l_.str.5:                               ; @.str.5
	.asciz	"Rule must contain mode"

.subsections_via_symbols
