	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_get_edid
_adv7511_get_edid:                      ## @adv7511_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_get_adv7511_state
	movq	%rax, %r14
	movl	20(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	movslq	8(%r15), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.3:
	cmpl	$0, 12(%r15)
	je	LBB0_4
LBB0_5:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	addl	%eax, %eax
	cmpl	%esi, %eax
	jle	LBB0_9
## %bb.10:
	movl	12(%r15), %edx
	leal	(%rdx,%rsi), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_12
## %bb.11:
	subl	%esi, %eax
	movl	%eax, 12(%r15)
	movl	%eax, %edx
LBB0_12:
	movl	16(%r15), %edi
	shlq	$9, %rsi
	addq	8(%r14), %rsi
	shll	$7, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	jmp	LBB0_13
LBB0_6:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_4:
	movl	(%r14), %eax
	addl	%eax, %eax
	movl	%eax, 12(%r15)
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_adv7511_get_edid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_get_edid
_adv7511_get_edid:                      ; @adv7511_get_edid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_get_adv7511_state
	mov	x20, x0
	ldr	w0, [x19, #20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19]
	cbz	x8, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldrsw	x8, [x19, #8]
	cbnz	w8, LBB0_6
; %bb.5:
	ldr	w9, [x19, #12]
	cbz	w9, LBB0_12
LBB0_6:
	ldr	w9, [x20]
	cbz	w9, LBB0_11
; %bb.7:
	lsl	w10, w9, #1
	cmp	w10, w8
	b.le	LBB0_1
; %bb.8:
	ldr	w9, [x19, #12]
	add	w11, w9, w8
	cmp	w11, w10
	b.le	LBB0_10
; %bb.9:
	sub	w9, w10, w8
	str	w9, [x19, #12]
LBB0_10:
	ldr	w0, [x19, #16]
	ldr	x10, [x20, #8]
	add	x1, x10, x8, lsl #9
	lsl	w2, w9, #7
	bl	_memcpy
	mov	w0, #0
	b	LBB0_3
LBB0_11:
Lloh2:
	adrp	x8, _ENODATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
	mov	w0, #0
	ldr	w8, [x20]
	lsl	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_adv7511_get_edid
.subsections_via_symbols
