	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_crtc_dpms
_ast_crtc_dpms:                         ## @ast_crtc_dpms
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_AST1180@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	leal	-128(%rsi), %eax
	cmpl	$3, %eax
	jae	LBB0_2
## %bb.6:
	movq	_AST_IO_SEQ_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$223, %ecx
	xorl	%r8d, %r8d
	callq	_ast_set_index_reg_mask
	movl	8(%rbx), %eax
	movq	_AST_TX_DP501@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	movl	$1, %esi
	callq	_ast_set_dp501_video_output
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ast_crtc_load_lut              ## TAILCALL
LBB0_2:
	cmpl	$131, %esi
	jne	LBB0_9
## %bb.3:
	movl	8(%rbx), %eax
	movq	_AST_TX_DP501@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	callq	_ast_set_dp501_video_output
LBB0_5:
	movq	_AST_IO_SEQ_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$223, %ecx
	movl	$32, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ast_set_index_reg_mask         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AST1180,8,3                    ## @AST1180
	.comm	_AST_IO_SEQ_PORT,4,2            ## @AST_IO_SEQ_PORT
	.comm	_AST_TX_DP501,4,2               ## @AST_TX_DP501
	.no_dead_strip	_ast_crtc_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_crtc_dpms
_ast_crtc_dpms:                         ; @ast_crtc_dpms
	.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	x20, x0
	ldr	x0, [x0]
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AST1180@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AST1180@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	sub	w8, w1, #128
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _AST_IO_SEQ_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AST_IO_SEQ_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #223
	mov	w4, #0
	bl	_ast_set_index_reg_mask
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _AST_TX_DP501@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AST_TX_DP501@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x20]
	mov	w1, #1
	bl	_ast_set_dp501_video_output
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ast_crtc_load_lut
LBB0_6:
	cmp	w1, #131
	b.ne	LBB0_1
; %bb.7:
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _AST_TX_DP501@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AST_TX_DP501@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	mov	w1, #0
	bl	_ast_set_dp501_video_output
LBB0_9:
Lloh12:
	adrp	x8, _AST_IO_SEQ_PORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AST_IO_SEQ_PORT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #223
	mov	w4, #32
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ast_set_index_reg_mask
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AST1180,8,3                    ; @AST1180
	.comm	_AST_IO_SEQ_PORT,4,2            ; @AST_IO_SEQ_PORT
	.comm	_AST_TX_DP501,4,2               ; @AST_TX_DP501
	.no_dead_strip	_ast_crtc_dpms
.subsections_via_symbols
