	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upgrade_mode
_upgrade_mode:                          ## @upgrade_mode
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movups	(%rdi), %xmm0
	movaps	%xmm0, -64(%rbp)
	movups	(%rdi), %xmm0
	movaps	%xmm0, -48(%rbp)
	orl	%esi, -48(%rbp)
	movq	%rdx, %r15
	movq	$0, -40(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_open_dev
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	orl	%r14d, (%rbx)
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_close_dev
LBB0_2:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_upgrade_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upgrade_mode
_upgrade_mode:                          ; @upgrade_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	q0, [x0]
	stp	q0, q0, [sp]
	ldr	w8, [sp, #16]
	orr	w8, w8, w1
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_open_dev
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	orr	w8, w8, w21
	str	w8, [x20]
	mov	x0, sp
	mov	x1, x19
	bl	_close_dev
LBB0_2:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_upgrade_mode
.subsections_via_symbols
