	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_get_edid_block          ## -- Begin function cdn_dp_get_edid_block
	.p2align	4, 0x90
_cdn_dp_get_edid_block:                 ## @cdn_dp_get_edid_block
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edx, %r15d
	shrl	%r15d
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	andl	$1, %r13d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leal	8(%rcx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	cmpl	$4, %r12d
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, -56(%rbp)
	movl	%r13d, -52(%rbp)
	movq	_MB_MODULE_ID_DP_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DPTX_GET_EDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$8, %ecx
	leaq	-56(%rbp), %r8
	callq	_cdn_dp_mailbox_send
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MB_MODULE_ID_DP_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DPTX_GET_EDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	callq	_cdn_dp_mailbox_validate_receive
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$8, %edx
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_cdn_dp_mailbox_read_receive
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_cdn_dp_mailbox_read_receive
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	-64(%rbp), %rax
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	sete	%al
	cmpl	%r15d, -60(%rbp)
	sete	%cl
	xorl	%r14d, %r14d
	testb	%cl, %al
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	cmpl	$4, %r12d
	jne	LBB0_1
	jmp	LBB0_11
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.10:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_11
LBB0_9:
	xorl	%r14d, %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_MODULE_ID_DP_TX,4,2         ## @MB_MODULE_ID_DP_TX
	.comm	_DPTX_GET_EDID,4,2              ## @DPTX_GET_EDID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get block[%d] edid failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_get_edid_block          ; -- Begin function cdn_dp_get_edid_block
	.p2align	2
_cdn_dp_get_edid_block:                 ; @cdn_dp_get_edid_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	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
	.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	x19, x2
	str	x1, [sp]                        ; 8-byte Folded Spill
	mov	x20, x0
	mov	w25, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	lsr	w26, w2, #1
	and	w27, w2, #0x1
	add	w23, w21, #8
Lloh3:
	adrp	x28, _MB_MODULE_ID_DP_TX@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MB_MODULE_ID_DP_TX@GOTPAGEOFF]
Lloh5:
	adrp	x22, _DPTX_GET_EDID@GOTPAGE
Lloh6:
	ldr	x22, [x22, _DPTX_GET_EDID@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w25, #1
	cmp	w25, #4
	b.eq	LBB0_8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stp	w26, w27, [sp, #16]
	ldr	w1, [x28]
	ldr	w2, [x22]
	add	x4, sp, #16
	mov	x0, x20
	mov	w3, #8
	bl	_cdn_dp_mailbox_send
	mov	x24, x0
	cbnz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x28]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x3, x23
	bl	_cdn_dp_mailbox_validate_receive
	mov	x24, x0
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #8
	bl	_cdn_dp_mailbox_read_receive
	mov	x24, x0
	cbnz	w0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	mov	x2, x21
	bl	_cdn_dp_mailbox_read_receive
	mov	x24, x0
	cbnz	w0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w8, w9, [sp, #8]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	cmp	w9, w26
	ccmp	x8, x21, #0, eq
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w25, #1
	cmp	w25, #4
	b.ne	LBB0_2
	b	LBB0_10
LBB0_8:
	cbz	w24, LBB0_10
; %bb.9:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x24
	bl	_DRM_DEV_ERROR
LBB0_10:
	ldr	x8, [sp, #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_12
; %bb.11:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_MODULE_ID_DP_TX,4,2         ; @MB_MODULE_ID_DP_TX
	.comm	_DPTX_GET_EDID,4,2              ; @DPTX_GET_EDID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get block[%d] edid failed: %d\n"

.subsections_via_symbols
