	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_ddc_probe               ## -- Begin function radeon_ddc_probe
	.p2align	4, 0x90
_radeon_ddc_probe:                      ## @radeon_ddc_probe
	.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	$112, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$0, -116(%rbp)
	movl	$1, -112(%rbp)
	leaq	-116(%rbp), %rax
	movq	%rax, -104(%rbp)
	movl	$0, -96(%rbp)
	movq	_DDC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	$8, -88(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%rcx, -80(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)
	movl	%eax, -68(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_radeon_router_select_ddc_port
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	jmp	LBB0_5
LBB0_4:
	movq	(%rbx), %rdi
LBB0_5:
	leaq	-112(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jne	LBB0_7
## %bb.6:
	leaq	-64(%rbp), %rdi
	callq	_drm_edid_header_is_valid
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$6, %ecx
	setge	%al
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DDC_ADDR,4,2                   ## @DDC_ADDR
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_ddc_probe               ; -- Begin function radeon_ddc_probe
	.p2align	2
_radeon_ddc_probe:                      ; @radeon_ddc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #1
	stp	wzr, w8, [sp, #4]
	add	x8, sp, #4
	str	x8, [sp, #16]
Lloh3:
	adrp	x8, _DDC_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DDC_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #24]
	mov	w9, #8
	str	w9, [sp, #32]
	add	x9, sp, #56
	str	x9, [sp, #40]
Lloh6:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_radeon_router_select_ddc_port
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19]
LBB0_5:
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.6:
	add	x0, sp, #56
	bl	_drm_edid_header_is_valid
	cmp	w0, #5
	cset	w0, gt
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DDC_ADDR,4,2                   ; @DDC_ADDR
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
.subsections_via_symbols
