	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_do_probe_ddc_edid
_drm_do_probe_ddc_edid:                 ## @drm_do_probe_ddc_edid
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -136(%rbp)                ## 4-byte Spill
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%edx, %eax
	movb	%al, -130(%rbp)
	movl	%edx, %eax
	shrl	%eax
	movb	%al, -129(%rbp)
	andl	$510, %edx                      ## imm = 0x1FE
	cmpl	$1, %edx
	movl	$3, %r14d
	sbbl	$0, %r14d
	movl	%r14d, %eax
	xorl	$3, %eax
	leaq	(%rax,%rax,2), %rax
	leaq	-128(,%rax,8), %r13
	addq	%rbp, %r13
	movl	$-4, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, -128(%rbp)
	leaq	-129(%rbp), %rax
	movq	%rax, -120(%rbp)
	movl	$0, -112(%rbp)
	movq	_DDC_SEGMENT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movl	$1, -104(%rbp)
	leaq	-130(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$0, -88(%rbp)
	movq	_DDC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movl	-136(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, -80(%rbp)
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, -72(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movl	%eax, -60(%rbp)
	movzbl	%r14b, %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_i2c_transfer
	movl	%eax, %ebx
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, %ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r15), %eax
	testl	%r15d, %r15d
	movl	%eax, %r15d
	jne	LBB0_1
	jmp	LBB0_5
LBB0_2:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_5:
	xorl	%eax, %eax
	cmpl	%r14d, %ebx
	setne	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_7
## %bb.6:
	movb	%cl, %al
	negl	%eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
	.comm	_DDC_SEGMENT_ADDR,4,2           ## @DDC_SEGMENT_ADDR
	.comm	_DDC_ADDR,4,2                   ## @DDC_ADDR
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drm: skipping non-existent adapter %s\n"

	.no_dead_strip	_drm_do_probe_ddc_edid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_do_probe_ddc_edid
_drm_do_probe_ddc_edid:                 ; @drm_do_probe_ddc_edid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
Lloh3:
	adrp	x8, _EDID_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDID_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mul	w8, w8, w2
	strb	w8, [sp, #15]
	lsr	w8, w2, #1
	strb	w8, [sp, #14]
	tst	w2, #0x1fe
	mov	w8, #2
	cinc	w19, w8, ne
	eor	w8, w19, #0x3
	mov	w9, #24
	add	x10, sp, #16
	umaddl	x23, w8, w9, x10
	mov	w8, #1
	str	w8, [sp, #16]
	add	x9, sp, #14
	str	x9, [sp, #24]
Lloh6:
	adrp	x25, _DDC_SEGMENT_ADDR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DDC_SEGMENT_ADDR@GOTPAGEOFF]
	ldr	w9, [x25]
	stp	wzr, w9, [sp, #32]
	str	w8, [sp, #40]
	add	x8, sp, #15
	str	x8, [sp, #48]
Lloh8:
	adrp	x26, _DDC_ADDR@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DDC_ADDR@GOTPAGEOFF]
	ldr	w8, [x26]
	stp	wzr, w8, [sp, #56]
	str	w3, [sp, #64]
	str	x1, [sp, #72]
Lloh10:
	adrp	x27, _I2C_M_RD@GOTPAGE
Lloh11:
	ldr	x27, [x27, _I2C_M_RD@GOTPAGEOFF]
	ldr	w9, [x27]
	stp	w9, w8, [sp, #80]
	mov	x1, x23
	mov	x2, x19
	bl	_i2c_transfer
	mov	x24, x0
Lloh12:
	adrp	x28, _ENXIO@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ENXIO@GOTPAGEOFF]
	ldr	w8, [x28]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.1:
	cmp	w24, w19
	b.eq	LBB0_10
; %bb.2:
	mov	w8, #1
	str	w8, [sp, #16]
	add	x9, sp, #14
	str	x9, [sp, #24]
	ldr	w9, [x25]
	stp	wzr, w9, [sp, #32]
	str	w8, [sp, #40]
	add	x8, sp, #15
	str	x8, [sp, #48]
	ldr	w8, [x26]
	stp	wzr, w8, [sp, #56]
	str	w21, [sp, #64]
	str	x22, [sp, #72]
	ldr	w9, [x27]
	stp	w9, w8, [sp, #80]
	and	w2, w19, #0xff
	mov	x0, x20
	mov	x1, x23
	bl	_i2c_transfer
	mov	x24, x0
	ldr	w8, [x28]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.3:
	cmp	w24, w19
	b.eq	LBB0_10
; %bb.4:
	mov	w8, #1
	str	w8, [sp, #16]
	add	x9, sp, #14
	str	x9, [sp, #24]
	ldr	w9, [x25]
	stp	wzr, w9, [sp, #32]
	str	w8, [sp, #40]
	add	x8, sp, #15
	str	x8, [sp, #48]
	ldr	w8, [x26]
	stp	wzr, w8, [sp, #56]
	str	w21, [sp, #64]
	str	x22, [sp, #72]
	ldr	w9, [x27]
	stp	w9, w8, [sp, #80]
	and	w2, w19, #0xff
	mov	x0, x20
	mov	x1, x23
	bl	_i2c_transfer
	mov	x24, x0
	ldr	w8, [x28]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.5:
	cmp	w24, w19
	b.eq	LBB0_10
; %bb.6:
	mov	w8, #1
	str	w8, [sp, #16]
	add	x9, sp, #14
	str	x9, [sp, #24]
	ldr	w9, [x25]
	stp	wzr, w9, [sp, #32]
	str	w8, [sp, #40]
	add	x8, sp, #15
	str	x8, [sp, #48]
	ldr	w8, [x26]
	stp	wzr, w8, [sp, #56]
	str	w21, [sp, #64]
	str	x22, [sp, #72]
	ldr	w9, [x27]
	stp	w9, w8, [sp, #80]
	and	w2, w19, #0xff
	mov	x0, x20
	mov	x1, x23
	bl	_i2c_transfer
	mov	x24, x0
	ldr	w8, [x28]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.7:
	cmp	w24, w19
	b.eq	LBB0_10
; %bb.8:
	mov	w8, #1
	str	w8, [sp, #16]
	add	x9, sp, #14
	str	x9, [sp, #24]
	ldr	w9, [x25]
	stp	wzr, w9, [sp, #32]
	str	w8, [sp, #40]
	add	x8, sp, #15
	str	x8, [sp, #48]
	ldr	w8, [x26]
	stp	wzr, w8, [sp, #56]
	str	w21, [sp, #64]
	str	x22, [sp, #72]
	ldr	w9, [x27]
	stp	w9, w8, [sp, #80]
	and	w2, w19, #0xff
	mov	x0, x20
	mov	x1, x23
	bl	_i2c_transfer
	mov	x24, x0
	ldr	w8, [x28]
	cmn	w0, w8
	b.ne	LBB0_10
LBB0_9:
	ldr	w1, [x20]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_10:
	cmp	w24, w19
	csetm	w0, ne
	ldr	x8, [sp, #88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.comm	_DDC_SEGMENT_ADDR,4,2           ; @DDC_SEGMENT_ADDR
	.comm	_DDC_ADDR,4,2                   ; @DDC_ADDR
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drm: skipping non-existent adapter %s\n"

	.no_dead_strip	_drm_do_probe_ddc_edid
.subsections_via_symbols
