	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda998x_connector_get_modes
_tda998x_connector_get_modes:           ## @tda998x_connector_get_modes
	.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	%rdi, %r14
	callq	_conn_to_tda998x_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tda998x_edid_delay_wait
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	(%rbx), %rax
	movq	_TDA19988@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.2:
	movq	_REG_TX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX4_PD_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_reg_clear
LBB0_3:
	movq	_read_edid_block@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_drm_do_get_edid
	movq	%rax, %r15
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.4:
	movq	_REG_TX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX4_PD_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_reg_set
LBB0_5:
	testq	%r15, %r15
	je	LBB0_6
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_update_edid_property
	movl	16(%rbx), %edi
	movq	%r15, %rsi
	callq	_cec_notifier_set_phys_addr_from_edid
	movq	%rbx, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_add_edid_modes
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_drm_detect_monitor_audio
	movl	%eax, 12(%rbx)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_kfree
	movl	%r14d, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA19988,8,3                   ## @TDA19988
	.comm	_REG_TX4,4,2                    ## @REG_TX4
	.comm	_TX4_PD_RAM,4,2                 ## @TX4_PD_RAM
	.comm	_read_edid_block,4,2            ## @read_edid_block
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read EDID\n"

	.no_dead_strip	_tda998x_connector_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda998x_connector_get_modes
_tda998x_connector_get_modes:           ; @tda998x_connector_get_modes
	.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	x20, x0
	bl	_conn_to_tda998x_priv
	mov	x19, x0
	bl	_tda998x_edid_delay_wait
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _TDA19988@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TDA19988@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _REG_TX4@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_TX4@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _TX4_PD_RAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TX4_PD_RAM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_reg_clear
LBB0_4:
Lloh8:
	adrp	x8, _read_edid_block@GOTPAGE
Lloh9:
	ldr	x8, [x8, _read_edid_block@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_drm_do_get_edid
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _REG_TX4@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_TX4@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _TX4_PD_RAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TX4_PD_RAM@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_reg_set
LBB0_6:
	cbz	x21, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_drm_connector_update_edid_property
	ldr	w0, [x19, #16]
	mov	x1, x21
	bl	_cec_notifier_set_phys_addr_from_edid
	add	x22, x19, #8
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x21
	bl	_drm_add_edid_modes
	mov	x20, x0
	mov	x0, x21
	bl	_drm_detect_monitor_audio
	str	w0, [x19, #12]
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x21
	bl	_kfree
	mov	x0, x20
LBB0_8:
	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
LBB0_9:
	ldr	x0, [x19, #24]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA19988,8,3                   ; @TDA19988
	.comm	_REG_TX4,4,2                    ; @REG_TX4
	.comm	_TX4_PD_RAM,4,2                 ; @TX4_PD_RAM
	.comm	_read_edid_block,4,2            ; @read_edid_block
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read EDID\n"

	.no_dead_strip	_tda998x_connector_get_modes
.subsections_via_symbols
