	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa711x_write_platform_data
_saa711x_write_platform_data:           ## @saa711x_write_platform_data
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_GM7113C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_SAA7113@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_2:
	addq	$8, %r15
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movq	_R_08_SYNC_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa711x_read
	movq	_SAA7113_R_08_HTC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SAA7113_R_08_HTC_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	(%r14), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	notl	%esi
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa711x_write
LBB0_4:
	cmpq	$0, 40(%r14)
	je	LBB0_6
## %bb.5:
	movq	_R_10_CHROMA_CNTL_2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa711x_read
	movq	_SAA7113_R_10_VRLN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_SAA7113_R_10_VRLN_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	40(%r14), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	cmovnel	%eax, %edx
	orl	%esi, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa711x_write
LBB0_6:
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.7:
	movq	_R_10_CHROMA_CNTL_2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa711x_read
	movq	_SAA7113_R_10_OFTS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SAA7113_R_10_OFTS_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	8(%r14), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	notl	%esi
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa711x_write
LBB0_8:
	cmpq	$0, 16(%r14)
	je	LBB0_10
## %bb.9:
	movq	_R_12_RT_SIGNAL_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_saa711x_read
	movq	_SAA7113_R_12_RTS0_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	16(%r14), %rcx
	movl	(%rcx), %esi
	movq	_SAA7113_R_12_RTS0_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%esi, %ebx
	shll	%cl, %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	movq	_SAA7113_RTS_DOT_IN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %esi
	sete	%dil
	callq	_WARN_ON
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_saa711x_write
LBB0_10:
	cmpq	$0, 24(%r14)
	je	LBB0_12
## %bb.11:
	movq	_R_12_RT_SIGNAL_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa711x_read
	movq	_SAA7113_R_12_RTS1_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SAA7113_R_12_RTS1_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	24(%r14), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	notl	%esi
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa711x_write
LBB0_12:
	cmpq	$0, 32(%r14)
	je	LBB0_13
## %bb.14:
	movq	_R_13_RT_X_PORT_OUT_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa711x_read
	movq	_SAA7113_R_13_ADLSB_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_SAA7113_R_13_ADLSB_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	32(%r14), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	cmovnel	%eax, %edx
	orl	%esi, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_saa711x_write                  ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GM7113C,8,3                    ## @GM7113C
	.comm	_SAA7113,8,3                    ## @SAA7113
	.comm	_R_08_SYNC_CNTL,4,2             ## @R_08_SYNC_CNTL
	.comm	_SAA7113_R_08_HTC_MASK,4,2      ## @SAA7113_R_08_HTC_MASK
	.comm	_SAA7113_R_08_HTC_OFFSET,4,2    ## @SAA7113_R_08_HTC_OFFSET
	.comm	_R_10_CHROMA_CNTL_2,4,2         ## @R_10_CHROMA_CNTL_2
	.comm	_SAA7113_R_10_VRLN_MASK,4,2     ## @SAA7113_R_10_VRLN_MASK
	.comm	_SAA7113_R_10_VRLN_OFFSET,4,2   ## @SAA7113_R_10_VRLN_OFFSET
	.comm	_SAA7113_R_10_OFTS_MASK,4,2     ## @SAA7113_R_10_OFTS_MASK
	.comm	_SAA7113_R_10_OFTS_OFFSET,4,2   ## @SAA7113_R_10_OFTS_OFFSET
	.comm	_R_12_RT_SIGNAL_CNTL,4,2        ## @R_12_RT_SIGNAL_CNTL
	.comm	_SAA7113_R_12_RTS0_MASK,4,2     ## @SAA7113_R_12_RTS0_MASK
	.comm	_SAA7113_R_12_RTS0_OFFSET,4,2   ## @SAA7113_R_12_RTS0_OFFSET
	.comm	_SAA7113_RTS_DOT_IN,4,2         ## @SAA7113_RTS_DOT_IN
	.comm	_SAA7113_R_12_RTS1_MASK,4,2     ## @SAA7113_R_12_RTS1_MASK
	.comm	_SAA7113_R_12_RTS1_OFFSET,4,2   ## @SAA7113_R_12_RTS1_OFFSET
	.comm	_R_13_RT_X_PORT_OUT_CNTL,4,2    ## @R_13_RT_X_PORT_OUT_CNTL
	.comm	_SAA7113_R_13_ADLSB_MASK,4,2    ## @SAA7113_R_13_ADLSB_MASK
	.comm	_SAA7113_R_13_ADLSB_OFFSET,4,2  ## @SAA7113_R_13_ADLSB_OFFSET
	.no_dead_strip	_saa711x_write_platform_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa711x_write_platform_data
_saa711x_write_platform_data:           ; @saa711x_write_platform_data
	.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	x19, x0
	ldr	x8, [x19], #8
Lloh0:
	adrp	x9, _GM7113C@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GM7113C@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SAA7113@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SAA7113@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_13
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x21, _R_08_SYNC_CNTL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _R_08_SYNC_CNTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_saa711x_read
Lloh8:
	adrp	x8, _SAA7113_R_08_HTC_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SAA7113_R_08_HTC_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x20]
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _SAA7113_R_08_HTC_OFFSET@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SAA7113_R_08_HTC_OFFSET@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_saa711x_write
LBB0_3:
	ldr	x8, [x20, #40]
Lloh14:
	adrp	x21, _R_10_CHROMA_CNTL_2@GOTPAGE
Lloh15:
	ldr	x21, [x21, _R_10_CHROMA_CNTL_2@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_saa711x_read
Lloh16:
	adrp	x8, _SAA7113_R_10_VRLN_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SAA7113_R_10_VRLN_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x20, #40]
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _SAA7113_R_10_VRLN_OFFSET@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SAA7113_R_10_VRLN_OFFSET@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w10, w11, w10
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_saa711x_write
LBB0_5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_saa711x_read
Lloh22:
	adrp	x8, _SAA7113_R_10_OFTS_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SAA7113_R_10_OFTS_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _SAA7113_R_10_OFTS_OFFSET@GOTPAGE
Lloh26:
	ldr	x10, [x10, _SAA7113_R_10_OFTS_OFFSET@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_saa711x_write
LBB0_7:
	ldr	x8, [x20, #16]
Lloh28:
	adrp	x22, _R_12_RT_SIGNAL_CNTL@GOTPAGE
Lloh29:
	ldr	x22, [x22, _R_12_RT_SIGNAL_CNTL@GOTPAGEOFF]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_saa711x_read
Lloh30:
	adrp	x8, _SAA7113_R_12_RTS0_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SAA7113_R_12_RTS0_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x20, #16]
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _SAA7113_R_12_RTS0_OFFSET@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SAA7113_R_12_RTS0_OFFSET@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w21, w10, w8
Lloh36:
	adrp	x8, _SAA7113_RTS_DOT_IN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SAA7113_RTS_DOT_IN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w9, w8
	cset	w0, eq
	bl	_WARN_ON
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_saa711x_write
LBB0_9:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_saa711x_read
Lloh39:
	adrp	x8, _SAA7113_R_12_RTS1_MASK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SAA7113_R_12_RTS1_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x20, #24]
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _SAA7113_R_12_RTS1_OFFSET@GOTPAGE
Lloh43:
	ldr	x10, [x10, _SAA7113_R_12_RTS1_OFFSET@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	ldr	w1, [x22]
	mov	x0, x19
	bl	_saa711x_write
LBB0_11:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_13
; %bb.12:
Lloh45:
	adrp	x21, _R_13_RT_X_PORT_OUT_CNTL@GOTPAGE
Lloh46:
	ldr	x21, [x21, _R_13_RT_X_PORT_OUT_CNTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_saa711x_read
Lloh47:
	adrp	x8, _SAA7113_R_13_ADLSB_MASK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SAA7113_R_13_ADLSB_MASK@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x20, #32]
	ldr	x9, [x9]
Lloh50:
	adrp	x10, _SAA7113_R_13_ADLSB_OFFSET@GOTPAGE
Lloh51:
	ldr	x10, [x10, _SAA7113_R_13_ADLSB_OFFSET@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w10, w11, w10
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	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
	b	_saa711x_write
LBB0_13:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GM7113C,8,3                    ; @GM7113C
	.comm	_SAA7113,8,3                    ; @SAA7113
	.comm	_R_08_SYNC_CNTL,4,2             ; @R_08_SYNC_CNTL
	.comm	_SAA7113_R_08_HTC_MASK,4,2      ; @SAA7113_R_08_HTC_MASK
	.comm	_SAA7113_R_08_HTC_OFFSET,4,2    ; @SAA7113_R_08_HTC_OFFSET
	.comm	_R_10_CHROMA_CNTL_2,4,2         ; @R_10_CHROMA_CNTL_2
	.comm	_SAA7113_R_10_VRLN_MASK,4,2     ; @SAA7113_R_10_VRLN_MASK
	.comm	_SAA7113_R_10_VRLN_OFFSET,4,2   ; @SAA7113_R_10_VRLN_OFFSET
	.comm	_SAA7113_R_10_OFTS_MASK,4,2     ; @SAA7113_R_10_OFTS_MASK
	.comm	_SAA7113_R_10_OFTS_OFFSET,4,2   ; @SAA7113_R_10_OFTS_OFFSET
	.comm	_R_12_RT_SIGNAL_CNTL,4,2        ; @R_12_RT_SIGNAL_CNTL
	.comm	_SAA7113_R_12_RTS0_MASK,4,2     ; @SAA7113_R_12_RTS0_MASK
	.comm	_SAA7113_R_12_RTS0_OFFSET,4,2   ; @SAA7113_R_12_RTS0_OFFSET
	.comm	_SAA7113_RTS_DOT_IN,4,2         ; @SAA7113_RTS_DOT_IN
	.comm	_SAA7113_R_12_RTS1_MASK,4,2     ; @SAA7113_R_12_RTS1_MASK
	.comm	_SAA7113_R_12_RTS1_OFFSET,4,2   ; @SAA7113_R_12_RTS1_OFFSET
	.comm	_R_13_RT_X_PORT_OUT_CNTL,4,2    ; @R_13_RT_X_PORT_OUT_CNTL
	.comm	_SAA7113_R_13_ADLSB_MASK,4,2    ; @SAA7113_R_13_ADLSB_MASK
	.comm	_SAA7113_R_13_ADLSB_OFFSET,4,2  ; @SAA7113_R_13_ADLSB_OFFSET
	.no_dead_strip	_saa711x_write_platform_data
.subsections_via_symbols
