	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r820t_vga_adjust
_r820t_vga_adjust:                      ## @r820t_vga_adjust
	.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, %r14
	movl	$12, %esi
	movl	$12, %edx
	movl	$15, %ecx
	callq	_r820t_write_reg_mask
	testl	%eax, %eax
	js	LBB0_17
## %bb.1:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	%r14, %rdi
	callq	_r820t_multi_read
	testl	%eax, %eax
	js	LBB0_17
## %bb.2:
	xorl	%ebx, %ebx
	cmpl	$161, %eax
	jae	LBB0_18
## %bb.3:
	movq	%r14, %rdi
	movl	$12, %esi
	movl	$13, %edx
	movl	$15, %ecx
	callq	_r820t_write_reg_mask
	testl	%eax, %eax
	js	LBB0_17
## %bb.4:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	%r14, %rdi
	callq	_r820t_multi_read
	testl	%eax, %eax
	js	LBB0_17
## %bb.5:
	cmpl	$160, %eax
	ja	LBB0_18
## %bb.6:
	movq	%r14, %rdi
	movl	$12, %esi
	movl	$14, %edx
	movl	$15, %ecx
	callq	_r820t_write_reg_mask
	testl	%eax, %eax
	js	LBB0_17
## %bb.7:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	%r14, %rdi
	callq	_r820t_multi_read
	testl	%eax, %eax
	js	LBB0_17
## %bb.8:
	cmpl	$160, %eax
	ja	LBB0_18
## %bb.9:
	movq	%r14, %rdi
	movl	$12, %esi
	movl	$15, %edx
	movl	$15, %ecx
	callq	_r820t_write_reg_mask
	testl	%eax, %eax
	js	LBB0_17
## %bb.10:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movq	%r14, %rdi
	callq	_r820t_multi_read
	movl	%eax, %ebx
	sarl	$31, %ebx
	andl	%eax, %ebx
	jmp	LBB0_18
LBB0_17:
	movl	%eax, %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_r820t_vga_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r820t_vga_adjust
_r820t_vga_adjust:                      ; @r820t_vga_adjust
	.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
	mov	w1, #12
	mov	w2, #12
	mov	w3, #15
	bl	_r820t_write_reg_mask
	tbnz	w0, #31, LBB0_12
; %bb.1:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	mov	x0, x19
	bl	_r820t_multi_read
	tbnz	w0, #31, LBB0_12
; %bb.2:
	cmp	w0, #161
	b.lo	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	mov	w1, #12
	mov	w2, #13
	mov	w3, #15
	bl	_r820t_write_reg_mask
	tbnz	w0, #31, LBB0_12
; %bb.5:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	mov	x0, x19
	bl	_r820t_multi_read
	tbnz	w0, #31, LBB0_12
; %bb.6:
	cmp	w0, #160
	b.hi	LBB0_3
; %bb.7:
	mov	x0, x19
	mov	w1, #12
	mov	w2, #14
	mov	w3, #15
	bl	_r820t_write_reg_mask
	tbnz	w0, #31, LBB0_12
; %bb.8:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	mov	x0, x19
	bl	_r820t_multi_read
	tbnz	w0, #31, LBB0_12
; %bb.9:
	cmp	w0, #160
	b.hi	LBB0_3
; %bb.10:
	mov	x0, x19
	mov	w1, #12
	mov	w2, #15
	mov	w3, #15
	bl	_r820t_write_reg_mask
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	mov	x0, x19
	bl	_r820t_multi_read
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_r820t_vga_adjust
.subsections_via_symbols
