	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9910_set_hsync
_tw9910_set_hsync:                      ## @tw9910_set_hsync
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_tw9910
	movq	%rax, %r14
	movq	_HSBEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HSYNC_START@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shrl	$3, %eax
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_HSEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HSYNC_END@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shrl	$3, %eax
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	cmpl	$1, (%r14)
	jne	LBB0_3
## %bb.4:
	movq	_HSLOWCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	shll	$4, %eax
	andl	$112, %eax
	movl	(%r12), %ecx
	andl	$7, %ecx
	orl	%eax, %ecx
	movq	%rbx, %rdi
	movl	$119, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tw9910_mask_set                ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HSBEGIN,4,2                    ## @HSBEGIN
	.comm	_HSYNC_START,4,2                ## @HSYNC_START
	.comm	_HSEND,4,2                      ## @HSEND
	.comm	_HSYNC_END,4,2                  ## @HSYNC_END
	.comm	_HSLOWCTL,4,2                   ## @HSLOWCTL
	.no_dead_strip	_tw9910_set_hsync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9910_set_hsync
_tw9910_set_hsync:                      ; @tw9910_set_hsync
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_to_tw9910
	mov	x20, x0
Lloh0:
	adrp	x8, _HSBEGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HSBEGIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _HSYNC_START@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HSYNC_START@GOTPAGEOFF]
	ldr	w8, [x21]
	ubfx	w2, w8, #3, #8
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _HSEND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HSEND@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x22, _HSYNC_END@GOTPAGE
Lloh9:
	ldr	x22, [x22, _HSYNC_END@GOTPAGEOFF]
	ldr	w8, [x22]
	ubfx	w2, w8, #3, #8
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _HSLOWCTL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HSLOWCTL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x21]
	ldr	w9, [x22]
	and	w3, w9, #0x7
	bfi	w3, w8, #4, #3
	mov	x0, x19
	mov	w2, #119
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tw9910_mask_set
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HSBEGIN,4,2                    ; @HSBEGIN
	.comm	_HSYNC_START,4,2                ; @HSYNC_START
	.comm	_HSEND,4,2                      ; @HSEND
	.comm	_HSYNC_END,4,2                  ; @HSYNC_END
	.comm	_HSLOWCTL,4,2                   ; @HSLOWCTL
	.no_dead_strip	_tw9910_set_hsync
.subsections_via_symbols
