	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mfi_ctrl_rebuild_rate
_mfi_ctrl_rebuild_rate:                 ## @mfi_ctrl_rebuild_rate
	.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
	cmpl	$3, %edi
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_2:
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_mfi_unit@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mfi_open
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	leaq	-32(%rbp), %rsi
	movl	%eax, %edi
	callq	_mfi_ctrl_get_properties
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	cmpl	$2, %ebx
	jl	LBB0_11
## %bb.8:
	movq	8(%r15), %rdi
	callq	_atoi
	movl	%eax, -32(%rbp)
	leaq	-32(%rbp), %rsi
	movl	%r14d, %edi
	callq	_mfi_ctrl_set_properties
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	leaq	-32(%rbp), %rsi
	movl	%r14d, %edi
	callq	_mfi_ctrl_get_properties
	testl	%eax, %eax
	js	LBB0_5
LBB0_11:
	movl	-32(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_printf
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_12
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	callq	_warn
	movl	%r14d, %edi
	callq	_close
LBB0_12:
	movl	%ebx, %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	"mfi_ctrl_set_rebuild_rate"

	.comm	_mfi_unit,4,2                   ## @mfi_unit
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"mfi_open"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get controller properties"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to set controller properties"

L_.str.4:                               ## @.str.4
	.asciz	"controller rebuild rate: %%%u \n"

	.no_dead_strip	_mfi_ctrl_rebuild_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mfi_ctrl_rebuild_rate
_mfi_ctrl_rebuild_rate:                 ; @mfi_ctrl_rebuild_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w0, #3
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w20, #-1
	b	LBB0_12
LBB0_2:
	mov	x20, x1
	mov	x21, x0
Lloh2:
	adrp	x8, _mfi_unit@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mfi_unit@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_mfi_open
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x19, x0
	add	x1, sp, #8
	bl	_mfi_ctrl_get_properties
	tbnz	w0, #31, LBB0_9
; %bb.4:
	cmp	w21, #2
	b.lt	LBB0_7
; %bb.5:
	ldr	x0, [x20, #8]
	bl	_atoi
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mfi_ctrl_set_properties
	tbnz	w0, #31, LBB0_10
; %bb.6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_mfi_ctrl_get_properties
	tbnz	w0, #31, LBB0_9
LBB0_7:
	ldr	w1, [sp, #8]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	w20, #0
	b	LBB0_12
LBB0_8:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_12
LBB0_9:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_warn
	mov	x0, x19
	bl	_close
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mfi_ctrl_set_rebuild_rate"

	.comm	_mfi_unit,4,2                   ; @mfi_unit
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"mfi_open"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get controller properties"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to set controller properties"

l_.str.4:                               ; @.str.4
	.asciz	"controller rebuild rate: %%%u \n"

	.no_dead_strip	_mfi_ctrl_rebuild_rate
.subsections_via_symbols
