	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_videoport_init         ## -- Begin function saa7134_videoport_init
	.p2align	4, 0x90
_saa7134_videoport_init:                ## @saa7134_videoport_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_saa7134_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movslq	(%rax,%rcx,8), %r12
	movl	4(%rax,%rcx,8), %r15d
	movq	_SAA7134_VIDEO_PORT_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_video_out@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %esi
	callq	_saa_writeb
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movq	_SET_T_CODE_POLARITY_NON_INVERTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	movq	_VP_T_CODE_P_INVERTED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	xorl	%ebx, %ebx
	cmpl	$1, %ecx
	movl	$0, %esi
	sbbl	%esi, %esi
	orl	%edx, %esi
	andl	4(%rax), %esi
	movq	_SAA7134_VIDEO_PORT_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_saa_writeb
	movq	_SAA7134_VIDEO_PORT_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movl	8(%rax), %esi
	callq	_saa_writeb
	movq	_SAA7134_VIDEO_PORT_CTRL4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movl	16(%rax), %esi
	callq	_saa_writeb
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movq	_SET_CLOCK_NOT_DELAYED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	movq	_VP_CLK_CTRL2_DELAYED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	$1, %ecx
	sbbl	%ebx, %ebx
	notl	%edx
	orl	%edx, %ebx
	andl	20(%rax), %ebx
	movq	_SET_CLOCK_INVERTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r15d, %esi
	je	LBB0_2
## %bb.1:
	movq	_VP_CLK_CTRL1_INVERTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_2:
	orl	%ebx, %esi
	movq	_SAA7134_VIDEO_PORT_CTRL5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_saa_writeb
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movl	24(%rax), %esi
	movq	_SET_VSYNC_OFF@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_VP_VS_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %esi
	movq	_VP_VS_TYPE_OFF@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_4:
	movq	_SAA7134_VIDEO_PORT_CTRL6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_saa_writeb
	movq	_SAA7134_VIDEO_PORT_CTRL7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movl	28(%rax), %esi
	callq	_saa_writeb
	movq	_SAA7134_VIDEO_PORT_CTRL8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movl	32(%rax), %esi
	callq	_saa_writeb
	movq	_SAA7134_VIDEO_PORT_CTRL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movl	12(%rax), %esi
	callq	_saa_writeb
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_saa7134_boards,8,3             ## @saa7134_boards
	.comm	_SAA7134_VIDEO_PORT_CTRL0,4,2   ## @SAA7134_VIDEO_PORT_CTRL0
	.comm	_video_out,8,3                  ## @video_out
	.comm	_SET_T_CODE_POLARITY_NON_INVERTED,4,2 ## @SET_T_CODE_POLARITY_NON_INVERTED
	.comm	_VP_T_CODE_P_INVERTED,4,2       ## @VP_T_CODE_P_INVERTED
	.comm	_SAA7134_VIDEO_PORT_CTRL1,4,2   ## @SAA7134_VIDEO_PORT_CTRL1
	.comm	_SAA7134_VIDEO_PORT_CTRL2,4,2   ## @SAA7134_VIDEO_PORT_CTRL2
	.comm	_SAA7134_VIDEO_PORT_CTRL4,4,2   ## @SAA7134_VIDEO_PORT_CTRL4
	.comm	_SET_CLOCK_NOT_DELAYED,4,2      ## @SET_CLOCK_NOT_DELAYED
	.comm	_VP_CLK_CTRL2_DELAYED,4,2       ## @VP_CLK_CTRL2_DELAYED
	.comm	_SET_CLOCK_INVERTED,4,2         ## @SET_CLOCK_INVERTED
	.comm	_VP_CLK_CTRL1_INVERTED,4,2      ## @VP_CLK_CTRL1_INVERTED
	.comm	_SAA7134_VIDEO_PORT_CTRL5,4,2   ## @SAA7134_VIDEO_PORT_CTRL5
	.comm	_SET_VSYNC_OFF,4,2              ## @SET_VSYNC_OFF
	.comm	_VP_VS_TYPE_MASK,4,2            ## @VP_VS_TYPE_MASK
	.comm	_VP_VS_TYPE_OFF,4,2             ## @VP_VS_TYPE_OFF
	.comm	_SAA7134_VIDEO_PORT_CTRL6,4,2   ## @SAA7134_VIDEO_PORT_CTRL6
	.comm	_SAA7134_VIDEO_PORT_CTRL7,4,2   ## @SAA7134_VIDEO_PORT_CTRL7
	.comm	_SAA7134_VIDEO_PORT_CTRL8,4,2   ## @SAA7134_VIDEO_PORT_CTRL8
	.comm	_SAA7134_VIDEO_PORT_CTRL3,4,2   ## @SAA7134_VIDEO_PORT_CTRL3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_videoport_init         ; -- Begin function saa7134_videoport_init
	.p2align	2
_saa7134_videoport_init:                ; @saa7134_videoport_init
	.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
Lloh0:
	adrp	x8, _saa7134_boards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _saa7134_boards@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldp	w9, w21, [x8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
Lloh3:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL0@GOTPAGEOFF]
Lloh5:
	adrp	x19, _video_out@GOTPAGE
Lloh6:
	ldr	x19, [x19, _video_out@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x19]
	lsl	x20, x9, #3
	ldr	x8, [x8, x20]
	ldr	w1, [x8]
	bl	_saa_writeb
	ldr	x8, [x19]
	ldr	x8, [x8, x20]
Lloh8:
	adrp	x9, _SET_T_CODE_POLARITY_NON_INVERTED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SET_T_CODE_POLARITY_NON_INVERTED@GOTPAGEOFF]
	ldr	w8, [x8, #4]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _VP_T_CODE_P_INVERTED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _VP_T_CODE_P_INVERTED@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w9, w21
	mov	w22, #-1
	csinv	w9, w22, w10, eq
	and	w1, w9, w8
Lloh14:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL1@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_saa_writeb
Lloh17:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL2@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, x20]
	ldr	w1, [x8, #8]
	bl	_saa_writeb
Lloh20:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL4@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL4@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, x20]
	ldr	w1, [x8, #16]
	bl	_saa_writeb
	ldr	x8, [x19]
	ldr	x8, [x8, x20]
	ldr	w8, [x8, #20]
Lloh23:
	adrp	x9, _SET_CLOCK_NOT_DELAYED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SET_CLOCK_NOT_DELAYED@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _VP_CLK_CTRL2_DELAYED@GOTPAGE
Lloh27:
	ldr	x10, [x10, _VP_CLK_CTRL2_DELAYED@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	w9, w21
	csinv	w9, w22, w10, eq
	and	w8, w9, w8
Lloh29:
	adrp	x9, _SET_CLOCK_INVERTED@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SET_CLOCK_INVERTED@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _VP_CLK_CTRL1_INVERTED@GOTPAGE
Lloh33:
	ldr	x10, [x10, _VP_CLK_CTRL1_INVERTED@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
Lloh35:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL5@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL5@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_saa_writeb
	ldr	x8, [x19]
	ldr	x8, [x8, x20]
	ldr	w1, [x8, #24]
Lloh38:
	adrp	x8, _SET_VSYNC_OFF@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SET_VSYNC_OFF@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
Lloh41:
	adrp	x8, _VP_VS_TYPE_MASK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VP_VS_TYPE_MASK@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	bic	w8, w1, w8
Lloh44:
	adrp	x9, _VP_VS_TYPE_OFF@GOTPAGE
Lloh45:
	ldr	x9, [x9, _VP_VS_TYPE_OFF@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w1, w8, w9
LBB0_2:
Lloh47:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL6@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL6@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_saa_writeb
Lloh50:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL7@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL7@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, x20]
	ldr	w1, [x8, #28]
	bl	_saa_writeb
Lloh53:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL8@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL8@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, x20]
	ldr	w1, [x8, #32]
	bl	_saa_writeb
Lloh56:
	adrp	x8, _SAA7134_VIDEO_PORT_CTRL3@GOTPAGE
Lloh57:
	ldr	x8, [x8, _SAA7134_VIDEO_PORT_CTRL3@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, x20]
	ldr	w1, [x8, #12]
	bl	_saa_writeb
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_saa7134_boards,8,3             ; @saa7134_boards
	.comm	_SAA7134_VIDEO_PORT_CTRL0,4,2   ; @SAA7134_VIDEO_PORT_CTRL0
	.comm	_video_out,8,3                  ; @video_out
	.comm	_SET_T_CODE_POLARITY_NON_INVERTED,4,2 ; @SET_T_CODE_POLARITY_NON_INVERTED
	.comm	_VP_T_CODE_P_INVERTED,4,2       ; @VP_T_CODE_P_INVERTED
	.comm	_SAA7134_VIDEO_PORT_CTRL1,4,2   ; @SAA7134_VIDEO_PORT_CTRL1
	.comm	_SAA7134_VIDEO_PORT_CTRL2,4,2   ; @SAA7134_VIDEO_PORT_CTRL2
	.comm	_SAA7134_VIDEO_PORT_CTRL4,4,2   ; @SAA7134_VIDEO_PORT_CTRL4
	.comm	_SET_CLOCK_NOT_DELAYED,4,2      ; @SET_CLOCK_NOT_DELAYED
	.comm	_VP_CLK_CTRL2_DELAYED,4,2       ; @VP_CLK_CTRL2_DELAYED
	.comm	_SET_CLOCK_INVERTED,4,2         ; @SET_CLOCK_INVERTED
	.comm	_VP_CLK_CTRL1_INVERTED,4,2      ; @VP_CLK_CTRL1_INVERTED
	.comm	_SAA7134_VIDEO_PORT_CTRL5,4,2   ; @SAA7134_VIDEO_PORT_CTRL5
	.comm	_SET_VSYNC_OFF,4,2              ; @SET_VSYNC_OFF
	.comm	_VP_VS_TYPE_MASK,4,2            ; @VP_VS_TYPE_MASK
	.comm	_VP_VS_TYPE_OFF,4,2             ; @VP_VS_TYPE_OFF
	.comm	_SAA7134_VIDEO_PORT_CTRL6,4,2   ; @SAA7134_VIDEO_PORT_CTRL6
	.comm	_SAA7134_VIDEO_PORT_CTRL7,4,2   ; @SAA7134_VIDEO_PORT_CTRL7
	.comm	_SAA7134_VIDEO_PORT_CTRL8,4,2   ; @SAA7134_VIDEO_PORT_CTRL8
	.comm	_SAA7134_VIDEO_PORT_CTRL3,4,2   ; @SAA7134_VIDEO_PORT_CTRL3
.subsections_via_symbols
