	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_hvflip
_set_hvflip:                            ## @set_hvflip
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_FLIP_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	_flip_dmi_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	sete	%cl
	movl	%ecx, %r14d
	movl	%eax, %r15d
LBB0_3:
	movl	4(%rbx), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_12
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_i2c_r2
	movl	-36(%rbp), %eax
	andl	$-4, %eax
	leal	2(%rax), %ecx
	testl	%r15d, %r15d
	cmovel	%eax, %ecx
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	orl	%ecx, %edx
	jmp	LBB0_8
LBB0_7:
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_i2c_r2
	movl	$-49313, %eax                   ## imm = 0xFFFF3F5F
	andl	-36(%rbp), %eax
	leal	32896(%rax), %ecx
	testl	%r15d, %r15d
	cmovel	%eax, %ecx
	leal	16416(%rcx), %edx
	testl	%r14d, %r14d
	cmovel	%ecx, %edx
LBB0_8:
	movl	%edx, -36(%rbp)
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_i2c_w2
	jmp	LBB0_12
LBB0_6:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$30, %esi
	callq	_i2c_r1
	movl	-40(%rbp), %eax
	andl	$-49, %eax
	leal	32(%rax), %ecx
	testl	%r15d, %r15d
	cmovel	%eax, %ecx
	leal	16(%rcx), %edx
	testl	%r14d, %r14d
	cmovel	%ecx, %edx
	movl	$1, %eax
	movl	$73, %r14d
	cmovel	%eax, %r14d
	movl	%edx, -40(%rbp)
	movq	%rbx, %rdi
	movl	$30, %esi
	callq	_i2c_w1
	movq	%rbx, %rdi
	movl	$58, %esi
	movl	%r14d, %edx
	jmp	LBB0_11
LBB0_5:
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	setne	%r12b
	shll	$5, %r12d
	leal	1(%r12), %eax
	orl	$17, %r12d
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	cmovel	%eax, %r12d
	orl	$2, %edx
	movl	%edx, 8(%rbx)
	movq	%rbx, %rdi
	movl	$4482, %esi                     ## imm = 0x1182
	callq	_reg_w1
	movq	%rbx, %rdi
	movl	$30, %esi
	movl	%r12d, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_w1                         ## TAILCALL
LBB0_10:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_i2c_r1
	movl	-40(%rbp), %eax
	andl	$-4, %eax
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	setne	%cl
	leal	(%rax,%rcx), %esi
	testl	%r15d, %r15d
	leal	2(%rax,%rcx), %edx
	cmovel	%esi, %edx
	movl	%edx, -40(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
LBB0_11:
	callq	_i2c_w1
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_FLIP_DETECT,4,2                ## @FLIP_DETECT
	.comm	_flip_dmi_table,4,2             ## @flip_dmi_table
	.no_dead_strip	_set_hvflip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_hvflip
_set_hvflip:                            ; @set_hvflip
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FLIP_DETECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLIP_DETECT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _flip_dmi_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _flip_dmi_table@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_dmi_check_system
	cmp	w21, #0
	cset	w8, eq
	cmp	w20, #0
	cset	w9, eq
	cmp	x0, #0
	csel	w20, w20, w9, eq
	csel	w21, w21, w8, eq
LBB0_2:
	ldr	w8, [x19, #4]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_11
; %bb.3:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #32
	bl	_i2c_r2
	ldr	w8, [sp, #8]
	and	w8, w8, #0xfffffffc
	orr	w9, w8, #0x2
	cmp	w21, #0
	csel	w8, w8, w9, eq
	cmp	w20, #0
	cset	w9, ne
	orr	w2, w8, w9
	b	LBB0_6
LBB0_5:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #32
	bl	_i2c_r2
	ldr	w8, [sp, #8]
	mov	w9, #-49313
	and	w8, w8, w9
	mov	w9, #32896
	orr	w9, w8, w9
	cmp	w21, #0
	csel	w8, w8, w9, eq
	mov	w9, #16416
	orr	w9, w8, w9
	cmp	w20, #0
	csel	w2, w8, w9, eq
LBB0_6:
	str	w2, [sp, #8]
	mov	x0, x19
	mov	w1, #32
	bl	_i2c_w2
	b	LBB0_11
LBB0_7:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #30
	bl	_i2c_r1
	ldr	w8, [sp, #12]
	and	w8, w8, #0xffffffcf
	orr	w9, w8, #0x20
	cmp	w21, #0
	csel	w8, w8, w9, eq
	orr	w9, w8, #0x10
	cmp	w20, #0
	csel	w2, w8, w9, eq
	mov	w8, #73
	csinc	w20, w8, wzr, ne
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #30
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #58
	mov	x2, x20
	b	LBB0_10
LBB0_8:
	cmp	w21, #0
	mov	w8, #33
	csinc	w8, w8, wzr, ne
	orr	w9, w8, #0x10
	cmp	w20, #0
	csel	w20, w8, w9, eq
	mov	w8, #2
	cinc	w2, w8, eq
	str	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #4482
	bl	_reg_w1
	mov	x0, x19
	mov	w1, #30
	mov	x2, 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
	b	_i2c_w1
LBB0_9:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	_i2c_r1
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffffc
	cmp	w20, #0
	cset	w9, ne
	orr	w8, w8, w9
	orr	w9, w8, #0x2
	cmp	w21, #0
	csel	w2, w8, w9, eq
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #1
LBB0_10:
	bl	_i2c_w1
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_FLIP_DETECT,4,2                ; @FLIP_DETECT
	.comm	_flip_dmi_table,4,2             ; @flip_dmi_table
	.no_dead_strip	_set_hvflip
.subsections_via_symbols
