	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rule_add
_rule_add:                              ## @rule_add
	.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
	movq	%rsi, %r14
	movl	%edi, %ebx
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	addq	$8, %r14
	decl	%ebx
	movq	_in_rsnum@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_rulespec_intok
	movq	_mpfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DEVFSIO_RADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_6
LBB0_3:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DEVFSIO_RADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_in_rsnum@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rulespec_infp
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_stdin,4,2                      ## @stdin
	.comm	_DEVFSIO_RADD,4,2               ## @DEVFSIO_RADD
	.comm	_in_rsnum,4,2                   ## @in_rsnum
	.comm	_mpfd,4,2                       ## @mpfd
L_.str.1:                               ## @.str.1
	.asciz	"ioctl DEVFSIO_RADD"

	.no_dead_strip	_rule_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rule_add
_rule_add:                              ; @rule_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	subs	w20, w0, #1
	b.gt	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	ldr	x0, [x19, #8]!
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _in_rsnum@GOTPAGE
Lloh3:
	ldr	x8, [x8, _in_rsnum@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_rulespec_intok
Lloh5:
	adrp	x8, _mpfd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mpfd@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _DEVFSIO_RADD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEVFSIO_RADD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _stdin@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _DEVFSIO_RADD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DEVFSIO_RADD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _in_rsnum@GOTPAGE
Lloh20:
	ldr	x8, [x8, _in_rsnum@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_rulespec_infp
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_stdin,4,2                      ; @stdin
	.comm	_DEVFSIO_RADD,4,2               ; @DEVFSIO_RADD
	.comm	_in_rsnum,4,2                   ; @in_rsnum
	.comm	_mpfd,4,2                       ; @mpfd
l_.str.1:                               ; @.str.1
	.asciz	"ioctl DEVFSIO_RADD"

	.no_dead_strip	_rule_add
.subsections_via_symbols
