	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_get_modes
_adv7511_get_modes:                     ## @adv7511_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$0, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movl	(%rax), %r15d
	addl	%r15d, %r15d
	movq	%rbx, %rdi
	callq	___adv7511_power_on
	movl	12(%rbx), %edi
	movq	_ADV7511_REG_EDID_I2C_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_regmap_write
LBB0_2:
	movq	_adv7511_get_edid_block@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_drm_do_get_edid
	movq	%rax, %r15
	cmpl	$0, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	___adv7511_power_off
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_update_edid_property
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_add_edid_modes
	movl	%eax, %r12d
	movl	4(%rbx), %r13d
	movq	%r15, %rdi
	callq	_drm_detect_hdmi_monitor
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_adv7511_set_config_csc
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_cec_s_phys_addr_from_edid
	movq	%r15, %rdi
	callq	_kfree
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7511_REG_EDID_I2C_ADDR,4,2  ## @ADV7511_REG_EDID_I2C_ADDR
	.comm	_adv7511_get_edid_block,4,2     ## @adv7511_get_edid_block
	.no_dead_strip	_adv7511_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_get_modes
_adv7511_get_modes:                     ; @adv7511_get_modes
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	lsl	w21, w8, #1
	mov	x0, x19
	bl	___adv7511_power_on
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x8, _ADV7511_REG_EDID_I2C_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV7511_REG_EDID_I2C_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_regmap_write
LBB0_2:
Lloh3:
	adrp	x8, _adv7511_get_edid_block@GOTPAGE
Lloh4:
	ldr	x8, [x8, _adv7511_get_edid_block@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_drm_do_get_edid
	mov	x21, x0
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	___adv7511_power_off
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_drm_connector_update_edid_property
	mov	x0, x20
	mov	x1, x21
	bl	_drm_add_edid_modes
	mov	x22, x0
	ldr	w23, [x19, #4]
	mov	x0, x21
	bl	_drm_detect_hdmi_monitor
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_adv7511_set_config_csc
	ldr	w0, [x19]
	mov	x1, x21
	bl	_cec_s_phys_addr_from_edid
	mov	x0, x21
	bl	_kfree
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7511_REG_EDID_I2C_ADDR,4,2  ; @ADV7511_REG_EDID_I2C_ADDR
	.comm	_adv7511_get_edid_block,4,2     ; @adv7511_get_edid_block
	.no_dead_strip	_adv7511_get_modes
.subsections_via_symbols
