	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl111sf_config_mpeg_in        ## -- Begin function mxl111sf_config_mpeg_in
	.p2align	4, 0x90
_mxl111sf_config_mpeg_in:               ## @mxl111sf_config_mpeg_in
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	callq	_mxl_debug
	movq	_V6_PIN_MUX_MODE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V6_ENABLE_PIN_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mxl111sf_write_reg
	movl	%eax, %edi
	callq	_mxl_fail
	movq	_V6_MPEG_IN_CLK_INV_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mxl111sf_read_reg
	movq	_TSIF_NORMAL@GOTPCREL(%rip), %rcx
	movq	_V6_INVERTED_CLK_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%r14d, (%rcx)
	jne	LBB0_2
## %bb.1:
	notl	%edx
	andl	-44(%rbp), %edx
	jmp	LBB0_3
LBB0_2:
	orl	-44(%rbp), %edx
LBB0_3:
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mxl111sf_write_reg
	movl	%eax, %edi
	callq	_mxl_fail
	movq	_V6_MPEG_IN_CTRL_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mxl111sf_read_reg
	movl	%eax, %edi
	callq	_mxl_fail
	movq	_TSIF_INPUT_PARALLEL@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_V6_MPEG_IN_DATA_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-44(%rbp), %eax
	movq	_V6_MPEG_IN_DATA_PARALLEL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_9
LBB0_5:
	movq	_V6_MPEG_IN_DATA_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-44(%rbp), %eax
	movq	_V6_MPEG_IN_DATA_SERIAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	movq	_V6_MPEG_INOUT_BIT_ORDER_CTRL_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mxl111sf_read_reg
	movl	%eax, %edi
	callq	_mxl_fail
	movq	_MPEG_SER_MSB_FIRST_ENABLED@GOTPCREL(%rip), %rax
	movq	_V6_MPEG_SER_MSB_FIRST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%r12d, (%rax)
	jne	LBB0_7
## %bb.6:
	orl	-48(%rbp), %edx
	jmp	LBB0_8
LBB0_7:
	notl	%edx
	andl	-48(%rbp), %edx
LBB0_8:
	movl	%edx, -48(%rbp)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_mxl111sf_write_reg
	movl	%eax, %edi
	callq	_mxl_fail
LBB0_9:
	movq	_V6_INVERTED_MPEG_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	_TSIF_NORMAL@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jne	LBB0_11
## %bb.10:
	notl	%eax
	andl	-44(%rbp), %eax
	jmp	LBB0_12
LBB0_11:
	orl	-44(%rbp), %eax
LBB0_12:
	movq	_V6_INVERTED_MPEG_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	notl	%edx
	andl	%eax, %edx
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%ecx, %edx
	movl	%edx, -44(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mxl111sf_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%u,%u,%u,%u,%u)"

	.comm	_V6_PIN_MUX_MODE_REG,4,2        ## @V6_PIN_MUX_MODE_REG
	.comm	_V6_ENABLE_PIN_MUX,4,2          ## @V6_ENABLE_PIN_MUX
	.comm	_V6_MPEG_IN_CLK_INV_REG,4,2     ## @V6_MPEG_IN_CLK_INV_REG
	.comm	_TSIF_NORMAL,4,2                ## @TSIF_NORMAL
	.comm	_V6_INVERTED_CLK_PHASE,4,2      ## @V6_INVERTED_CLK_PHASE
	.comm	_V6_MPEG_IN_CTRL_REG,4,2        ## @V6_MPEG_IN_CTRL_REG
	.comm	_TSIF_INPUT_PARALLEL,4,2        ## @TSIF_INPUT_PARALLEL
	.comm	_V6_MPEG_IN_DATA_SERIAL,4,2     ## @V6_MPEG_IN_DATA_SERIAL
	.comm	_V6_MPEG_IN_DATA_PARALLEL,4,2   ## @V6_MPEG_IN_DATA_PARALLEL
	.comm	_V6_MPEG_INOUT_BIT_ORDER_CTRL_REG,4,2 ## @V6_MPEG_INOUT_BIT_ORDER_CTRL_REG
	.comm	_MPEG_SER_MSB_FIRST_ENABLED,4,2 ## @MPEG_SER_MSB_FIRST_ENABLED
	.comm	_V6_MPEG_SER_MSB_FIRST,4,2      ## @V6_MPEG_SER_MSB_FIRST
	.comm	_V6_INVERTED_MPEG_SYNC,4,2      ## @V6_INVERTED_MPEG_SYNC
	.comm	_V6_INVERTED_MPEG_VALID,4,2     ## @V6_INVERTED_MPEG_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl111sf_config_mpeg_in        ; -- Begin function mxl111sf_config_mpeg_in
	.p2align	2
_mxl111sf_config_mpeg_in:               ; @mxl111sf_config_mpeg_in
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x5
	mov	x20, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_debug
Lloh2:
	adrp	x8, _V6_PIN_MUX_MODE_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V6_PIN_MUX_MODE_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _V6_ENABLE_PIN_MUX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V6_ENABLE_PIN_MUX@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mxl111sf_write_reg
	bl	_mxl_fail
Lloh8:
	adrp	x26, _V6_MPEG_IN_CLK_INV_REG@GOTPAGE
Lloh9:
	ldr	x26, [x26, _V6_MPEG_IN_CLK_INV_REG@GOTPAGEOFF]
	ldr	w1, [x26]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mxl111sf_read_reg
Lloh10:
	adrp	x25, _TSIF_NORMAL@GOTPAGE
Lloh11:
	ldr	x25, [x25, _TSIF_NORMAL@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh12:
	adrp	x8, _V6_INVERTED_CLK_PHASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V6_INVERTED_CLK_PHASE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w9, w24
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
LBB0_3:
	str	w2, [sp, #12]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_mxl111sf_write_reg
	bl	_mxl_fail
Lloh15:
	adrp	x24, _V6_MPEG_IN_CTRL_REG@GOTPAGE
Lloh16:
	ldr	x24, [x24, _V6_MPEG_IN_CTRL_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mxl111sf_read_reg
	bl	_mxl_fail
Lloh17:
	adrp	x8, _TSIF_INPUT_PARALLEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TSIF_INPUT_PARALLEL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_5
; %bb.4:
Lloh20:
	adrp	x8, _V6_MPEG_IN_DATA_SERIAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V6_MPEG_IN_DATA_SERIAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh23:
	adrp	x9, _V6_MPEG_IN_DATA_PARALLEL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _V6_MPEG_IN_DATA_PARALLEL@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	b	LBB0_9
LBB0_5:
Lloh26:
	adrp	x8, _V6_MPEG_IN_DATA_PARALLEL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V6_MPEG_IN_DATA_PARALLEL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh29:
	adrp	x9, _V6_MPEG_IN_DATA_SERIAL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _V6_MPEG_IN_DATA_SERIAL@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #12]
Lloh32:
	adrp	x23, _V6_MPEG_INOUT_BIT_ORDER_CTRL_REG@GOTPAGE
Lloh33:
	ldr	x23, [x23, _V6_MPEG_INOUT_BIT_ORDER_CTRL_REG@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x19
	bl	_mxl111sf_read_reg
	bl	_mxl_fail
Lloh34:
	adrp	x8, _MPEG_SER_MSB_FIRST_ENABLED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MPEG_SER_MSB_FIRST_ENABLED@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x8]
Lloh37:
	adrp	x8, _V6_MPEG_SER_MSB_FIRST@GOTPAGE
Lloh38:
	ldr	x8, [x8, _V6_MPEG_SER_MSB_FIRST@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w9, w22
	b.ne	LBB0_7
; %bb.6:
	ldr	w9, [sp, #8]
	orr	w2, w9, w8
	b	LBB0_8
LBB0_7:
	ldr	w9, [sp, #8]
	bic	w2, w9, w8
LBB0_8:
	str	w2, [sp, #8]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mxl111sf_write_reg
	bl	_mxl_fail
LBB0_9:
	ldr	w9, [x25]
Lloh40:
	adrp	x8, _V6_INVERTED_MPEG_SYNC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _V6_INVERTED_MPEG_SYNC@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w9, w21
	b.ne	LBB0_11
; %bb.10:
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	b	LBB0_12
LBB0_11:
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
LBB0_12:
Lloh43:
	adrp	x9, _V6_INVERTED_MPEG_VALID@GOTPAGE
Lloh44:
	ldr	x9, [x9, _V6_INVERTED_MPEG_VALID@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w8, w8, w9
	cmp	w20, #0
	csel	w2, w8, w10, eq
	str	w2, [sp, #12]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_mxl111sf_write_reg
	mov	x19, x0
	bl	_mxl_fail
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%u,%u,%u,%u,%u)"

	.comm	_V6_PIN_MUX_MODE_REG,4,2        ; @V6_PIN_MUX_MODE_REG
	.comm	_V6_ENABLE_PIN_MUX,4,2          ; @V6_ENABLE_PIN_MUX
	.comm	_V6_MPEG_IN_CLK_INV_REG,4,2     ; @V6_MPEG_IN_CLK_INV_REG
	.comm	_TSIF_NORMAL,4,2                ; @TSIF_NORMAL
	.comm	_V6_INVERTED_CLK_PHASE,4,2      ; @V6_INVERTED_CLK_PHASE
	.comm	_V6_MPEG_IN_CTRL_REG,4,2        ; @V6_MPEG_IN_CTRL_REG
	.comm	_TSIF_INPUT_PARALLEL,4,2        ; @TSIF_INPUT_PARALLEL
	.comm	_V6_MPEG_IN_DATA_SERIAL,4,2     ; @V6_MPEG_IN_DATA_SERIAL
	.comm	_V6_MPEG_IN_DATA_PARALLEL,4,2   ; @V6_MPEG_IN_DATA_PARALLEL
	.comm	_V6_MPEG_INOUT_BIT_ORDER_CTRL_REG,4,2 ; @V6_MPEG_INOUT_BIT_ORDER_CTRL_REG
	.comm	_MPEG_SER_MSB_FIRST_ENABLED,4,2 ; @MPEG_SER_MSB_FIRST_ENABLED
	.comm	_V6_MPEG_SER_MSB_FIRST,4,2      ; @V6_MPEG_SER_MSB_FIRST
	.comm	_V6_INVERTED_MPEG_SYNC,4,2      ; @V6_INVERTED_MPEG_SYNC
	.comm	_V6_INVERTED_MPEG_VALID,4,2     ; @V6_INVERTED_MPEG_VALID
.subsections_via_symbols
