	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_g_edid                  ## -- Begin function vidioc_g_edid
	.p2align	4, 0x90
_vidioc_g_edid:                         ## @vidioc_g_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	%rdx, %r15
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_video_devdata
	movq	%rax, %rbx
	movl	20(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%rbx), %rcx
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rdx
	movq	(%r15), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.1:
	cmpq	(%r14), %rax
	jae	LBB0_2
## %bb.4:
	movq	8(%r14), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_HDMI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	movq	%r14, %rax
	addq	$72, %rax
	jmp	LBB0_11
LBB0_6:
	cmpq	16(%r14), %rax
	jae	LBB0_2
## %bb.7:
	movq	24(%r14), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	_HDMI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.8:
	movq	64(%r14), %rcx
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_9
## %bb.10:
	movq	32(%r14), %rcx
	movl	(%rcx,%rax,4), %eax
	shlq	$3, %rax
	addq	56(%r14), %rax
LBB0_11:
	movq	(%rax), %rcx
	movl	8(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	cmpl	$0, 12(%r15)
	je	LBB0_13
LBB0_14:
	movl	40(%r14), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.15:
	movl	%esi, %edi
	subl	%eax, %edi
	jle	LBB0_2
## %bb.16:
	movl	12(%r15), %edx
	cmpl	%edi, %edx
	jle	LBB0_18
## %bb.17:
	movl	%edi, 12(%r15)
	movl	%edi, %edx
LBB0_18:
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:
	movq	48(%r14), %rdi
	shll	$7, %esi
	movl	(%rcx), %edx
	callq	_v4l2_set_edid_phys_addr
	movl	8(%r15), %eax
	movl	12(%r15), %edx
LBB0_20:
	movl	16(%r15), %edi
	shll	$7, %eax
	movslq	%eax, %rsi
	addq	48(%r14), %rsi
	shll	$7, %edx
	callq	_memcpy
	jmp	LBB0_21
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_13:
	movl	40(%r14), %eax
	movl	%eax, 12(%r15)
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_VFL_DIR_RX,8,3                 ## @VFL_DIR_RX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HDMI,8,3                       ## @HDMI
	.comm	_ENODATA,4,2                    ## @ENODATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vidioc_g_edid                  ; -- Begin function vidioc_g_edid
	.p2align	2
_vidioc_g_edid:                         ; @vidioc_g_edid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x0
	bl	_video_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_video_devdata
	mov	x21, x0
	ldr	w0, [x19, #20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x9, [x21]
Lloh0:
	adrp	x8, _VFL_DIR_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VFL_DIR_RX@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	x8, [x19]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x20]
	cmp	x8, x9
	b.hs	LBB0_17
; %bb.2:
	ldr	x9, [x20, #8]
	ldr	x8, [x9, x8, lsl #3]
Lloh3:
	adrp	x9, _HDMI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HDMI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.3:
	add	x8, x20, #72
	b	LBB0_8
LBB0_4:
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.hs	LBB0_17
; %bb.5:
	ldr	x9, [x20, #24]
	ldr	x9, [x9, x8, lsl #3]
Lloh6:
	adrp	x10, _HDMI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HDMI@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.6:
	ldr	x9, [x20, #64]
	ldr	w9, [x9, x8, lsl #2]
	cbz	w9, LBB0_20
; %bb.7:
	ldr	x9, [x20, #32]
	ldr	w8, [x9, x8, lsl #2]
	ldr	x9, [x20, #56]
	add	x8, x9, x8, lsl #3
LBB0_8:
	ldr	x9, [x8]
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_10
; %bb.9:
	ldr	w10, [x19, #12]
	cbz	w10, LBB0_21
LBB0_10:
	ldr	w11, [x20, #40]
	cbz	w11, LBB0_20
; %bb.11:
	subs	w12, w11, w8
	b.le	LBB0_17
; %bb.12:
	ldr	w10, [x19, #12]
	cmp	w10, w12
	b.le	LBB0_14
; %bb.13:
	str	w12, [x19, #12]
	mov	x10, x12
LBB0_14:
	cbz	x9, LBB0_16
; %bb.15:
	ldr	x0, [x20, #48]
	lsl	w1, w11, #7
	ldr	w2, [x9]
	bl	_v4l2_set_edid_phys_addr
	ldp	w8, w10, [x19, #8]
LBB0_16:
	ldr	w0, [x19, #16]
	ldr	x9, [x20, #48]
	lsl	w8, w8, #7
	add	x1, x9, w8, sxtw
	lsl	w2, w10, #7
	bl	_memcpy
	mov	w0, #0
	b	LBB0_19
LBB0_17:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh11:
	adrp	x8, _ENODATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_18
LBB0_21:
	mov	w0, #0
	ldr	w8, [x20, #40]
	str	w8, [x19, #12]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VFL_DIR_RX,8,3                 ; @VFL_DIR_RX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HDMI,8,3                       ; @HDMI
	.comm	_ENODATA,4,2                    ; @ENODATA
.subsections_via_symbols
