	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vt1211_init_device
_vt1211_init_device:                    ## @vt1211_init_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_vid_which_vrm
	movl	%eax, 16(%rbx)
	movq	_VT1211_REG_UCH_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vt1211_read8
	movl	%eax, (%rbx)
	movq	_uch_config@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	js	LBB0_2
## %bb.1:
	andl	$131, %eax
	shll	$2, %edx
	orl	%eax, %edx
	movl	%edx, (%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vt1211_write8
LBB0_2:
	movq	_int_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_VT1211_REG_TEMP1_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_vt1211_write8
	movq	_VT1211_REG_TEMP2_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_vt1211_write8
LBB0_4:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movl	$255, 12(%rcx)
	movq	8(%rax), %rax
	movl	$255, 12(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VT1211_REG_UCH_CONFIG,4,2      ## @VT1211_REG_UCH_CONFIG
	.comm	_uch_config,4,2                 ## @uch_config
	.comm	_int_mode,8,3                   ## @int_mode
	.comm	_VT1211_REG_TEMP1_CONFIG,4,2    ## @VT1211_REG_TEMP1_CONFIG
	.comm	_VT1211_REG_TEMP2_CONFIG,4,2    ## @VT1211_REG_TEMP2_CONFIG
	.no_dead_strip	_vt1211_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vt1211_init_device
_vt1211_init_device:                    ; @vt1211_init_device
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_vid_which_vrm
	str	w0, [x19, #16]
Lloh0:
	adrp	x20, _VT1211_REG_UCH_CONFIG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VT1211_REG_UCH_CONFIG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vt1211_read8
	str	w0, [x19]
Lloh2:
	adrp	x8, _uch_config@GOTPAGE
Lloh3:
	ldr	x8, [x8, _uch_config@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tbnz	w8, #31, LBB0_2
; %bb.1:
	mov	w9, #131
	and	w9, w0, w9
	orr	w2, w9, w8, lsl #2
	str	w2, [x19]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vt1211_write8
LBB0_2:
Lloh5:
	adrp	x8, _int_mode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _int_mode@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _VT1211_REG_TEMP1_CONFIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VT1211_REG_TEMP1_CONFIG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_vt1211_write8
Lloh11:
	adrp	x8, _VT1211_REG_TEMP2_CONFIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VT1211_REG_TEMP2_CONFIG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_vt1211_write8
LBB0_4:
	ldr	x8, [x19, #8]
	mov	w9, #255
	ldp	x10, x8, [x8]
	str	w9, [x10, #12]
	str	w9, [x8, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VT1211_REG_UCH_CONFIG,4,2      ; @VT1211_REG_UCH_CONFIG
	.comm	_uch_config,4,2                 ; @uch_config
	.comm	_int_mode,8,3                   ; @int_mode
	.comm	_VT1211_REG_TEMP1_CONFIG,4,2    ; @VT1211_REG_TEMP1_CONFIG
	.comm	_VT1211_REG_TEMP2_CONFIG,4,2    ; @VT1211_REG_TEMP2_CONFIG
	.no_dead_strip	_vt1211_init_device
.subsections_via_symbols
