	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_tda8290_827x_callback
_saa7134_tda8290_827x_callback:         ## @saa7134_tda8290_827x_callback
	.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
	movl	%edx, %ebx
	cmpl	$1, %esi
	je	LBB0_3
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_4
## %bb.2:
	movl	$22, %esi
	movl	%ebx, %edx
	callq	_saa7134_set_gpio
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_SAA7134_VIDEO_PORT_CTRL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$128, %esi
	movl	$128, %edx
	callq	_saa_andorb
	movq	_SAA7134_VIDEO_PORT_CTRL6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$15, %esi
	movl	$3, %edx
	callq	_saa_andorb
	cmpl	$1, %ebx
	movl	$11, %eax
	movl	$17, %ebx
	cmovel	%eax, %ebx
	movq	_SAA7134_VGATE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_saa_writeb
	movq	_SAA7134_VGATE_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%ebx
	movl	%ebx, %esi
	callq	_saa_writeb
	movq	_SAA7134_MISC_VGATE_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_saa_andorb
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7134_VIDEO_PORT_CTRL3,4,2   ## @SAA7134_VIDEO_PORT_CTRL3
	.comm	_SAA7134_VIDEO_PORT_CTRL6,4,2   ## @SAA7134_VIDEO_PORT_CTRL6
	.comm	_SAA7134_VGATE_START,4,2        ## @SAA7134_VGATE_START
	.comm	_SAA7134_VGATE_STOP,4,2         ## @SAA7134_VGATE_STOP
	.comm	_SAA7134_MISC_VGATE_MSB,4,2     ## @SAA7134_MISC_VGATE_MSB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_saa7134_tda8290_827x_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_tda8290_827x_callback
_saa7134_tda8290_827x_callback:         ; @saa7134_tda8290_827x_callback
	.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, x2
	cmp	w1, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w1, LBB0_4
; %bb.2:
	mov	w1, #22
	mov	x2, x19
	bl	_saa7134_set_gpio
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL3@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #128
	mov	w2, #128
	bl	_saa_andorb
Lloh3:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL6@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #15
	mov	w2, #3
	bl	_saa_andorb
	mov	w8, #17
	mov	w9, #11
	cmp	w19, #1
	csel	w19, w9, w8, eq
Lloh6:
	adrp	x8, _SAA7134_VGATE_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAA7134_VGATE_START@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_saa_writeb
Lloh9:
	adrp	x8, _SAA7134_VGATE_STOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SAA7134_VGATE_STOP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	w1, w19, #1
	bl	_saa_writeb
Lloh12:
	adrp	x8, _SAA7134_MISC_VGATE_MSB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SAA7134_MISC_VGATE_MSB@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #3
	mov	w2, #0
	bl	_saa_andorb
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7134_VIDEO_PORT_CTRL3,4,2   ; @SAA7134_VIDEO_PORT_CTRL3
	.comm	_SAA7134_VIDEO_PORT_CTRL6,4,2   ; @SAA7134_VIDEO_PORT_CTRL6
	.comm	_SAA7134_VGATE_START,4,2        ; @SAA7134_VGATE_START
	.comm	_SAA7134_VGATE_STOP,4,2         ; @SAA7134_VGATE_STOP
	.comm	_SAA7134_MISC_VGATE_MSB,4,2     ; @SAA7134_MISC_VGATE_MSB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_saa7134_tda8290_827x_callback
.subsections_via_symbols
