	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_bridge_mode_set
_anx78xx_bridge_mode_set:               ## @anx78xx_bridge_mode_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_bridge_to_anx78xx
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpl	$0, 8(%rax)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rsi
	addq	$4, %rsi
	leaq	-24(%rbp), %rdi
	movq	%r14, %rdx
	callq	_drm_hdmi_avi_infoframe_from_display_mode
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_3:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_anx78xx_send_video_infoframe
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	movl	%eax, %esi
	callq	_DRM_ERROR
LBB0_6:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to setup AVI infoframe: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to send AVI infoframe: %d\n"

	.no_dead_strip	_anx78xx_bridge_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx78xx_bridge_mode_set
_anx78xx_bridge_mode_set:               ; @anx78xx_bridge_mode_set
	.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, x2
	bl	_bridge_to_anx78xx
	mov	x19, x0
	ldr	w8, [x0, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	add	x1, x19, #4
	add	x0, sp, #8
	mov	x2, x20
	bl	_drm_hdmi_avi_infoframe_from_display_mode
	cbz	w0, LBB0_3
; %bb.2:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_anx78xx_send_video_infoframe
	cbz	w0, LBB0_6
; %bb.4:
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_DRM_ERROR
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to setup AVI infoframe: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to send AVI infoframe: %d\n"

	.no_dead_strip	_anx78xx_bridge_mode_set
.subsections_via_symbols
