	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_init_dvo
_ast_init_dvo:                          ## @ast_init_dvo
	.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
	movq	%rbx, %rdi
	movl	$61444, %esi                    ## imm = 0xF004
	movl	$510525440, %edx                ## imm = 0x1E6E0000
	callq	_ast_write32
	movq	%rbx, %rdi
	movl	$61440, %esi                    ## imm = 0xF000
	movl	$1, %edx
	callq	_ast_write32
	movq	%rbx, %rdi
	movl	$73728, %esi                    ## imm = 0x12000
	movl	$378054824, %edx                ## imm = 0x1688A8A8
	callq	_ast_write32
	movq	_AST_IO_CRTC_PORT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$208, %edx
	movl	$255, %ecx
	callq	_ast_get_index_reg_mask
	testb	$-128, %al
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	movl	$73736, %esi                    ## imm = 0x12008
	callq	_ast_read32
                                        ## kill: def $eax killed $eax def $rax
	andl	$-1793, %eax                    ## imm = 0xF8FF
	leal	1280(%rax), %edx
	movq	%rbx, %rdi
	movl	$73736, %esi                    ## imm = 0x12008
	callq	_ast_write32
	movq	(%rbx), %rax
	movq	_AST2300@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$73860, %esi                    ## imm = 0x12084
	callq	_ast_read32
	orl	$-131072, %eax                  ## imm = 0xFFFE0000
	movq	%rbx, %rdi
	movl	$73860, %esi                    ## imm = 0x12084
	movl	%eax, %edx
	callq	_ast_write32
	movq	%rbx, %rdi
	movl	$73864, %esi                    ## imm = 0x12088
	callq	_ast_read32
	orl	$1048575, %eax                  ## imm = 0xFFFFF
	movq	%rbx, %rdi
	movl	$73864, %esi                    ## imm = 0x12088
	movl	%eax, %edx
	callq	_ast_write32
	movq	%rbx, %rdi
	movl	$73872, %esi                    ## imm = 0x12090
	callq	_ast_read32
                                        ## kill: def $eax killed $eax def $rax
	andl	$-49, %eax
	leal	32(%rax), %edx
	movq	%rbx, %rdi
	movl	$73872, %esi                    ## imm = 0x12090
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	movl	$73864, %esi                    ## imm = 0x12088
	callq	_ast_read32
	orl	$805306368, %eax                ## imm = 0x30000000
	movq	%rbx, %rdi
	movl	$73864, %esi                    ## imm = 0x12088
	movl	%eax, %edx
	callq	_ast_write32
	movq	%rbx, %rdi
	movl	$73868, %esi                    ## imm = 0x1208C
	callq	_ast_read32
	orl	$207, %eax
	movq	%rbx, %rdi
	movl	$73868, %esi                    ## imm = 0x1208C
	movl	%eax, %edx
	callq	_ast_write32
	movq	%rbx, %rdi
	movl	$73892, %esi                    ## imm = 0x120A4
	callq	_ast_read32
	orl	$-65536, %eax                   ## imm = 0xFFFF0000
	movq	%rbx, %rdi
	movl	$73892, %esi                    ## imm = 0x120A4
	movl	%eax, %edx
	callq	_ast_write32
	movq	%rbx, %rdi
	movl	$73896, %esi                    ## imm = 0x120A8
	callq	_ast_read32
	orl	$15, %eax
	movq	%rbx, %rdi
	movl	$73896, %esi                    ## imm = 0x120A8
	movl	%eax, %edx
	callq	_ast_write32
	movq	%rbx, %rdi
	movl	$73876, %esi                    ## imm = 0x12094
	callq	_ast_read32
	orl	$2, %eax
	movq	%rbx, %rdi
	movl	$73876, %esi                    ## imm = 0x12094
	movl	%eax, %edx
LBB0_4:
	callq	_ast_write32
LBB0_5:
	movq	%rbx, %rdi
	movl	$73772, %esi                    ## imm = 0x1202C
	callq	_ast_read32
	andl	$-262145, %eax                  ## imm = 0xFFFBFFFF
	movq	%rbx, %rdi
	movl	$73772, %esi                    ## imm = 0x1202C
	movl	%eax, %edx
	callq	_ast_write32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$163, %edx
	movl	$207, %ecx
	movl	$128, %r8d
	callq	_ast_set_index_reg_mask
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AST_IO_CRTC_PORT,4,2           ## @AST_IO_CRTC_PORT
	.comm	_AST2300,8,3                    ## @AST2300
	.no_dead_strip	_ast_init_dvo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_init_dvo
_ast_init_dvo:                          ; @ast_init_dvo
	.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	w21, #8328
	movk	w21, #1, lsl #16
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #61444
	mov	w2, #510525440
	bl	_ast_write32
	mov	x0, x19
	mov	w1, #61440
	mov	w2, #1
	bl	_ast_write32
	sub	w1, w21, #136
	mov	x0, x19
	mov	w2, #43176
	movk	w2, #5768, lsl #16
	bl	_ast_write32
Lloh0:
	adrp	x22, _AST_IO_CRTC_PORT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AST_IO_CRTC_PORT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #208
	mov	w3, #255
	bl	_ast_get_index_reg_mask
	tbnz	w0, #7, LBB0_5
; %bb.1:
	sub	w20, w21, #128
	mov	x0, x19
	mov	x1, x20
	bl	_ast_read32
	mov	x2, x0
	mov	w8, #5
	bfi	w2, w8, #8, #3
	mov	x0, x19
	mov	x1, x20
	bl	_ast_write32
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _AST2300@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AST2300@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	sub	w20, w21, #4
	mov	x0, x19
	mov	x1, x20
	bl	_ast_read32
	orr	w2, w0, #0xfffe0000
	mov	x0, x19
	mov	x1, x20
	bl	_ast_write32
	mov	x0, x19
	mov	w1, #8328
	movk	w1, #1, lsl #16
	bl	_ast_read32
	orr	w2, w0, #0xfffff
	mov	x0, x19
	mov	w1, #8328
	movk	w1, #1, lsl #16
	bl	_ast_write32
	add	w20, w21, #8
	mov	x0, x19
	mov	x1, x20
	bl	_ast_read32
	and	w8, w0, #0xffffffcf
	orr	w2, w8, #0x20
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	w1, #8328
	movk	w1, #1, lsl #16
	bl	_ast_read32
	orr	w2, w0, #0x30000000
	mov	x0, x19
	mov	w1, #8328
	movk	w1, #1, lsl #16
	bl	_ast_write32
	add	w20, w21, #4
	mov	x0, x19
	mov	x1, x20
	bl	_ast_read32
	mov	w8, #207
	orr	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_ast_write32
	add	w20, w21, #28
	mov	x0, x19
	mov	x1, x20
	bl	_ast_read32
	orr	w2, w0, #0xffff0000
	mov	x0, x19
	mov	x1, x20
	bl	_ast_write32
	add	w20, w21, #32
	mov	x0, x19
	mov	x1, x20
	bl	_ast_read32
	orr	w2, w0, #0xf
	mov	x0, x19
	mov	x1, x20
	bl	_ast_write32
	add	w20, w21, #12
	mov	x0, x19
	mov	x1, x20
	bl	_ast_read32
	orr	w2, w0, #0x2
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_ast_write32
LBB0_5:
	sub	w20, w21, #92
	mov	x0, x19
	mov	x1, x20
	bl	_ast_read32
	and	w2, w0, #0xfffbffff
	mov	x0, x19
	mov	x1, x20
	bl	_ast_write32
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #163
	mov	w3, #207
	mov	w4, #128
	bl	_ast_set_index_reg_mask
	mov	w0, #1
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AST_IO_CRTC_PORT,4,2           ; @AST_IO_CRTC_PORT
	.comm	_AST2300,8,3                    ; @AST2300
	.no_dead_strip	_ast_init_dvo
.subsections_via_symbols
