	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv76xx_parse_dt
_adv76xx_parse_dt:                      ## @adv76xx_parse_dt
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	80(%rdi), %rax
	movq	_ADV76XX_PAGE_IO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_of_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_of_fwnode_handle
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	callq	_v4l2_fwnode_endpoint_parse
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_of_node_put
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	xorl	%ecx, %ecx
	negl	%eax
	sbbl	%ecx, %ecx
	orl	-36(%rbp), %ecx
	movl	%ecx, (%r15)
	movl	-56(%rbp), %eax
	movq	_V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	$1, 4(%r15)
LBB0_5:
	movq	_V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	$1, 8(%r15)
LBB0_7:
	movq	_V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	$1, 12(%r15)
LBB0_9:
	movq	-64(%rbp), %rax
	movq	_V4L2_MBUS_BT656@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movl	$1, 16(%r15)
LBB0_11:
	movq	_ADV76XX_INT1_CONFIG_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r15)
	movl	$1, 20(%r15)
	movq	_ADV7604_OP_FORMAT_MODE0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_ADV7604_BUS_ORDER_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_ADV76XX_DR_STR_MEDIUM_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r15)
	movq	%rax, 32(%r15)
	movq	%rax, 24(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV76XX_PAGE_IO,8,3            ## @ADV76XX_PAGE_IO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default-input"

	.comm	_V4L2_MBUS_HSYNC_ACTIVE_HIGH,4,2 ## @V4L2_MBUS_HSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_HIGH,4,2 ## @V4L2_MBUS_VSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,4,2 ## @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_V4L2_MBUS_BT656,8,3            ## @V4L2_MBUS_BT656
	.comm	_ADV76XX_INT1_CONFIG_ACTIVE_HIGH,4,2 ## @ADV76XX_INT1_CONFIG_ACTIVE_HIGH
	.comm	_ADV7604_OP_FORMAT_MODE0,4,2    ## @ADV7604_OP_FORMAT_MODE0
	.comm	_ADV7604_BUS_ORDER_RGB,4,2      ## @ADV7604_BUS_ORDER_RGB
	.comm	_ADV76XX_DR_STR_MEDIUM_HIGH,8,3 ## @ADV76XX_DR_STR_MEDIUM_HIGH
	.no_dead_strip	_adv76xx_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv76xx_parse_dt
_adv76xx_parse_dt:                      ; @adv76xx_parse_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	stp	xzr, xzr, [sp, #16]
	ldr	x8, [x0, #80]
Lloh0:
	adrp	x9, _ADV76XX_PAGE_IO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADV76XX_PAGE_IO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x20, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_of_graph_get_next_endpoint
	cbz	x0, LBB0_11
; %bb.1:
	mov	x22, x0
	bl	_of_fwnode_handle
	add	x1, sp, #16
	bl	_v4l2_fwnode_endpoint_parse
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	cbnz	w21, LBB0_12
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	ldr	w8, [sp, #12]
	cmp	w0, #0
	csinv	w8, w8, wzr, eq
	str	w8, [x19]
	ldr	w8, [sp, #24]
Lloh5:
	adrp	x9, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w9, #1
	str	w9, [x19, #4]
LBB0_4:
Lloh8:
	adrp	x9, _V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w9, #1
	str	w9, [x19, #8]
LBB0_6:
Lloh11:
	adrp	x9, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_8:
	ldr	x8, [sp, #16]
Lloh14:
	adrp	x9, _V4L2_MBUS_BT656@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_MBUS_BT656@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_10:
	mov	w21, #0
Lloh17:
	adrp	x8, _ADV76XX_INT1_CONFIG_ACTIVE_HIGH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ADV76XX_INT1_CONFIG_ACTIVE_HIGH@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	mov	w8, #1
	str	w8, [x19, #20]
Lloh20:
	adrp	x8, _ADV7604_OP_FORMAT_MODE0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ADV7604_OP_FORMAT_MODE0@GOTPAGEOFF]
Lloh22:
	adrp	x9, _ADV7604_BUS_ORDER_RGB@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ADV7604_BUS_ORDER_RGB@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh26:
	adrp	x8, _ADV76XX_DR_STR_MEDIUM_HIGH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ADV76XX_DR_STR_MEDIUM_HIGH@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #32]
	str	x8, [x19, #24]
	stp	xzr, xzr, [x19, #56]
	b	LBB0_12
LBB0_11:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV76XX_PAGE_IO,8,3            ; @ADV76XX_PAGE_IO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default-input"

	.comm	_V4L2_MBUS_HSYNC_ACTIVE_HIGH,4,2 ; @V4L2_MBUS_HSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_HIGH,4,2 ; @V4L2_MBUS_VSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,4,2 ; @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_V4L2_MBUS_BT656,8,3            ; @V4L2_MBUS_BT656
	.comm	_ADV76XX_INT1_CONFIG_ACTIVE_HIGH,4,2 ; @ADV76XX_INT1_CONFIG_ACTIVE_HIGH
	.comm	_ADV7604_OP_FORMAT_MODE0,4,2    ; @ADV7604_OP_FORMAT_MODE0
	.comm	_ADV7604_BUS_ORDER_RGB,4,2      ; @ADV7604_BUS_ORDER_RGB
	.comm	_ADV76XX_DR_STR_MEDIUM_HIGH,8,3 ; @ADV76XX_DR_STR_MEDIUM_HIGH
	.no_dead_strip	_adv76xx_parse_dt
.subsections_via_symbols
