	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3306a_mpeg_mode_polarity
_lgdt3306a_mpeg_mode_polarity:          ## @lgdt3306a_mpeg_mode_polarity
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_dbg_info
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	movl	$112, %esi
	callq	_lgdt3306a_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	-36(%rbp), %edx
	andl	$-7, %edx
	movl	%edx, -36(%rbp)
	movq	_LGDT3306A_TPCLK_RISING_EDGE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_3
## %bb.2:
	orl	$4, %edx
	movl	%edx, -36(%rbp)
LBB0_3:
	movq	_LGDT3306A_TP_VALID_HIGH@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.4:
	orl	$2, %edx
	movl	%edx, -36(%rbp)
LBB0_5:
	movq	%r14, %rdi
	movl	$112, %esi
	callq	_lgdt3306a_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"edge=%d, valid=%d\n"

	.comm	_LGDT3306A_TPCLK_RISING_EDGE,4,2 ## @LGDT3306A_TPCLK_RISING_EDGE
	.comm	_LGDT3306A_TP_VALID_HIGH,4,2    ## @LGDT3306A_TP_VALID_HIGH
	.no_dead_strip	_lgdt3306a_mpeg_mode_polarity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3306a_mpeg_mode_polarity
_lgdt3306a_mpeg_mode_polarity:          ; @lgdt3306a_mpeg_mode_polarity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_info
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #112
	bl	_lgdt3306a_read_reg
	mov	x22, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
	and	w2, w8, #0xfffffff9
	str	w2, [sp, #12]
Lloh2:
	adrp	x8, _LGDT3306A_TPCLK_RISING_EDGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LGDT3306A_TPCLK_RISING_EDGE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.2:
	orr	w2, w2, #0x4
	str	w2, [sp, #12]
LBB0_3:
Lloh5:
	adrp	x8, _LGDT3306A_TP_VALID_HIGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LGDT3306A_TP_VALID_HIGH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.4:
	orr	w2, w2, #0x2
	str	w2, [sp, #12]
LBB0_5:
	mov	x0, x19
	mov	w1, #112
	bl	_lgdt3306a_write_reg
	mov	x22, x0
	bl	_lg_chkerr
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"edge=%d, valid=%d\n"

	.comm	_LGDT3306A_TPCLK_RISING_EDGE,4,2 ; @LGDT3306A_TPCLK_RISING_EDGE
	.comm	_LGDT3306A_TP_VALID_HIGH,4,2    ; @LGDT3306A_TP_VALID_HIGH
	.no_dead_strip	_lgdt3306a_mpeg_mode_polarity
.subsections_via_symbols
