	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_get_modes
_anx78xx_get_modes:                     ## @anx78xx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_connector_to_anx78xx
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpl	$0, 20(%rax)
	sete	%dil
	callq	_WARN_ON
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_add_edid_modes             ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_anx78xx_get_downstream_info
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_11
LBB0_5:
	movq	%r14, %rsi
	addq	$16, %rsi
	movq	%r15, %rdi
	callq	_drm_get_edid
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_drm_connector_update_edid_property
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_10
LBB0_9:
	movq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_drm_add_edid_modes
	movl	%eax, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get downstream info: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to read EDID\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to update EDID property: %d\n"

	.no_dead_strip	_anx78xx_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx78xx_get_modes
_anx78xx_get_modes:                     ; @anx78xx_get_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	bl	_connector_to_anx78xx
	mov	x19, x0
	ldr	w8, [x0, #20]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
	mov	w20, #0
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_drm_add_edid_modes
LBB0_5:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_anx78xx_get_downstream_info
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.6:
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_DRM_ERROR
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_2
LBB0_9:
	add	x1, x19, #16
	mov	x0, x20
	bl	_drm_get_edid
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.10:
	mov	x1, x0
	mov	x0, x20
	bl	_drm_connector_update_edid_property
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_13
; %bb.11:
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_12:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_13:
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_drm_add_edid_modes
	mov	x20, x0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get downstream info: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to read EDID\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to update EDID property: %d\n"

	.no_dead_strip	_anx78xx_get_modes
.subsections_via_symbols
