	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_bbu_props
_update_bbu_props:                      ## @update_bbu_props
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MFI_STAT_OK@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -40(%rbp)
	cmpl	$3, %edi
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	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_9
## %bb.2:
	movl	%eax, %r14d
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movl	%eax, %edi
	callq	_mfi_bbu_get_props
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:
	movq	-40(%rbp), %rdi
	cmpq	(%r12), %rdi
	jne	LBB0_11
## %bb.4:
	movq	8(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	8(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	8(%rbx), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.7:
	movq	8(%rbx), %rsi
	leaq	L_.str.12(%rip), %rdi
	jmp	LBB0_27
LBB0_8:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_31
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	jmp	LBB0_30
LBB0_11:
	callq	_mfi_status
	leaq	L_.str.3(%rip), %rdi
LBB0_12:
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_warnx
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_13:
	movq	16(%rbx), %rdi
	leaq	-64(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	16(%rbx), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_17
## %bb.14:
	movq	-64(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_17
## %bb.15:
	cmpq	$256, %rax                      ## imm = 0x100
	jae	LBB0_17
## %bb.16:
	movq	%rax, -56(%rbp)
	jmp	LBB0_37
LBB0_17:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_27
LBB0_18:
	movq	16(%rbx), %r15
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.19:
	movq	16(%rbx), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_33
## %bb.20:
	movsbl	(%r15), %eax
	leal	-48(%rax), %ecx
	cmpb	$2, %cl
	ja	LBB0_22
## %bb.21:
	cmpb	$0, 1(%r15)
	je	LBB0_35
LBB0_22:
	leaq	L_.str.9(%rip), %rdi
	movq	%r15, %rsi
	jmp	LBB0_27
LBB0_23:
	cmpb	$0, -44(%rbp)
	je	LBB0_34
## %bb.24:
	movq	16(%rbx), %rsi
	movb	(%rsi), %al
	leal	-54(%rax), %ecx
	cmpb	$-5, %cl
	jb	LBB0_26
## %bb.25:
	cmpb	$0, 1(%rsi)
	je	LBB0_36
LBB0_26:
	leaq	L_.str.9(%rip), %rdi
LBB0_27:
	xorl	%eax, %eax
	callq	_warnx
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %ebx
LBB0_30:
	movl	%r14d, %edi
	callq	_close
LBB0_31:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movl	$0, -48(%rbp)
	jmp	LBB0_37
LBB0_33:
	movl	$1, -48(%rbp)
	jmp	LBB0_37
LBB0_34:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_28
LBB0_35:
	addl	$-48, %eax
	movl	%eax, -48(%rbp)
	jmp	LBB0_37
LBB0_36:
	addb	$-48, %al
	movb	%al, -44(%rbp)
LBB0_37:
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movl	%r14d, %edi
	callq	_mfi_bbu_set_props
	testq	%rax, %rax
	js	LBB0_40
## %bb.38:
	movq	-40(%rbp), %rdi
	xorl	%ebx, %ebx
	cmpq	(%r12), %rdi
	je	LBB0_30
## %bb.39:
	callq	_mfi_status
	leaq	L_.str.14(%rip), %rdi
	jmp	LBB0_12
LBB0_40:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.13(%rip), %rdi
	callq	_warn
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_MFI_STAT_OK,8,3                ## @MFI_STAT_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bbu: property and value required"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.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 BBU properties"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to get BBU properties: %s"

	.comm	_EIO,4,2                        ## @EIO
L_.str.4:                               ## @.str.4
	.asciz	"learn-delay"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid learn delay '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"autolearn-mode"

L_.str.7:                               ## @.str.7
	.asciz	"enable"

L_.str.8:                               ## @.str.8
	.asciz	"disable"

L_.str.9:                               ## @.str.9
	.asciz	"Invalid mode '%s'"

L_.str.10:                              ## @.str.10
	.asciz	"bbu-mode"

L_.str.11:                              ## @.str.11
	.asciz	"This BBU does not implement different modes"

L_.str.12:                              ## @.str.12
	.asciz	"bbu: Invalid command '%s'"

L_.str.13:                              ## @.str.13
	.asciz	"Failed to set BBU properties"

L_.str.14:                              ## @.str.14
	.asciz	"Failed to set BBU properties: %s"

	.no_dead_strip	_update_bbu_props
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_bbu_props
_update_bbu_props:                      ; @update_bbu_props
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x22, _MFI_STAT_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MFI_STAT_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp, #24]
	cmp	w0, #3
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x1
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_9
; %bb.2:
	mov	x19, x0
	add	x1, sp, #32
	add	x2, sp, #24
	bl	_mfi_bbu_get_props
	tbnz	x0, #63, LBB0_10
; %bb.3:
	ldr	x0, [sp, #24]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.4:
	ldr	x0, [x20, #8]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.5:
	ldr	x0, [x20, #8]
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_18
; %bb.6:
	ldr	x0, [x20, #8]
Lloh12:
	adrp	x1, l_.str.10@PAGE
Lloh13:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.7:
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.12@PAGE
Lloh15:
	add	x0, x0, l_.str.12@PAGEOFF
	b	LBB0_31
LBB0_8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	b	LBB0_34
LBB0_9:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_34
LBB0_10:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	b	LBB0_33
LBB0_11:
	bl	_mfi_status
	str	x0, [sp]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
	bl	_warnx
Lloh33:
	adrp	x8, _EIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_32
LBB0_13:
	ldr	x0, [x20, #16]
	add	x1, sp, #16
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [x20, #16]
	ldrb	w9, [x8]
	cbz	w9, LBB0_17
; %bb.14:
	ldr	x9, [sp, #16]
	ldrb	w9, [x9]
	cbnz	w9, LBB0_17
; %bb.15:
	cmp	x0, #256
	b.hs	LBB0_17
; %bb.16:
	str	x0, [sp, #32]
	b	LBB0_37
LBB0_17:
	str	x8, [sp]
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_31
LBB0_18:
	ldr	x21, [x20, #16]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_28
; %bb.19:
	ldr	x0, [x20, #16]
Lloh39:
	adrp	x1, l_.str.8@PAGE
Lloh40:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_29
; %bb.20:
	ldrsb	w8, [x21]
	sub	w8, w8, #48
	cmp	w8, #2
	b.hi	LBB0_22
; %bb.21:
	ldrb	w9, [x21, #1]
	cbz	w9, LBB0_35
LBB0_22:
	str	x21, [sp]
	b	LBB0_27
LBB0_23:
	ldrb	w8, [sp, #44]
	cbz	w8, LBB0_30
; %bb.24:
	ldr	x8, [x20, #16]
	ldrb	w9, [x8]
	sub	w10, w9, #54
	and	w10, w10, #0xff
	cmp	w10, #251
	b.lo	LBB0_26
; %bb.25:
	ldrb	w10, [x8, #1]
	cbz	w10, LBB0_36
LBB0_26:
	str	x8, [sp]
LBB0_27:
Lloh41:
	adrp	x0, l_.str.9@PAGE
Lloh42:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_31
LBB0_28:
	str	wzr, [sp, #40]
	b	LBB0_37
LBB0_29:
	mov	w8, #1
	str	w8, [sp, #40]
	b	LBB0_37
LBB0_30:
Lloh43:
	adrp	x0, l_.str.11@PAGE
Lloh44:
	add	x0, x0, l_.str.11@PAGEOFF
LBB0_31:
	bl	_warnx
Lloh45:
	adrp	x8, _EINVAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_32:
	ldr	w20, [x8]
LBB0_33:
	mov	x0, x19
	bl	_close
LBB0_34:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_35:
	str	w8, [sp, #40]
	b	LBB0_37
LBB0_36:
	sub	w8, w9, #48
	strb	w8, [sp, #44]
LBB0_37:
	add	x1, sp, #32
	add	x2, sp, #24
	mov	x0, x19
	bl	_mfi_bbu_set_props
	tbnz	x0, #63, LBB0_40
; %bb.38:
	ldr	x0, [sp, #24]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_41
; %bb.39:
	mov	w20, #0
	b	LBB0_33
LBB0_40:
Lloh47:
	adrp	x8, _errno@GOTPAGE
Lloh48:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh49:
	ldr	w20, [x8]
Lloh50:
	adrp	x0, l_.str.13@PAGE
Lloh51:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_warn
	b	LBB0_33
LBB0_41:
	bl	_mfi_status
	str	x0, [sp]
Lloh52:
	adrp	x0, l_.str.14@PAGE
Lloh53:
	add	x0, x0, l_.str.14@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_MFI_STAT_OK,8,3                ; @MFI_STAT_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bbu: property and value required"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.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 BBU properties"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to get BBU properties: %s"

	.comm	_EIO,4,2                        ; @EIO
l_.str.4:                               ; @.str.4
	.asciz	"learn-delay"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid learn delay '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"autolearn-mode"

l_.str.7:                               ; @.str.7
	.asciz	"enable"

l_.str.8:                               ; @.str.8
	.asciz	"disable"

l_.str.9:                               ; @.str.9
	.asciz	"Invalid mode '%s'"

l_.str.10:                              ; @.str.10
	.asciz	"bbu-mode"

l_.str.11:                              ; @.str.11
	.asciz	"This BBU does not implement different modes"

l_.str.12:                              ; @.str.12
	.asciz	"bbu: Invalid command '%s'"

l_.str.13:                              ; @.str.13
	.asciz	"Failed to set BBU properties"

l_.str.14:                              ; @.str.14
	.asciz	"Failed to set BBU properties: %s"

	.no_dead_strip	_update_bbu_props
.subsections_via_symbols
