	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0070_ctrl_agc_filter        ## -- Begin function dib0070_ctrl_agc_filter
	.p2align	4, 0x90
_dib0070_ctrl_agc_filter:               ## @dib0070_ctrl_agc_filter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	$27, %esi
	movl	$65280, %edx                    ## imm = 0xFF00
	callq	_dib0070_write_reg
	movq	%rbx, %rdi
	movl	$26, %esi
	xorl	%edx, %edx
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dib0070_write_reg              ## TAILCALL
LBB0_2:
	movl	$27, %esi
	movl	$16658, %edx                    ## imm = 0x4112
	callq	_dib0070_write_reg
	movq	(%rbx), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	movl	$26, %esi
	callq	_dib0070_write_reg
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	movl	$26, %esi
	movl	$9, %edx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vga filter register is set to %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0070_ctrl_agc_filter        ; -- Begin function dib0070_ctrl_agc_filter
	.p2align	2
_dib0070_ctrl_agc_filter:               ; @dib0070_ctrl_agc_filter
	.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
	ldr	x19, [x0]
	mov	x0, x19
	cbz	x1, LBB0_3
; %bb.1:
	mov	w1, #27
	mov	w2, #65280
	bl	_dib0070_write_reg
	mov	x0, x19
	mov	w1, #26
	mov	w2, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dib0070_write_reg
LBB0_3:
	mov	w1, #27
	mov	w2, #16658
	bl	_dib0070_write_reg
	ldr	x8, [x19]
	ldr	w2, [x8]
	cbz	w2, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #26
	bl	_dib0070_write_reg
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dprintk
LBB0_5:
	mov	x0, x19
	mov	w1, #26
	mov	w2, #9
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vga filter register is set to %x\n"

.subsections_via_symbols
