	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_parse_device_node
_s5k5baf_parse_device_node:             ## @s5k5baf_parse_device_node
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rsi), %r14
	movq	$0, -48(%rbp)
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leaq	12(%rdi), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	_S5K5BAF_DEFAULT_MCLK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
LBB0_4:
	movl	8(%r15), %edi
	movq	%r12, %rsi
	callq	_s5k5baf_parse_gpios
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_of_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_of_fwnode_handle
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_v4l2_fwnode_endpoint_parse
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_of_node_put
	testl	%ebx, %ebx
	jne	LBB0_15
## %bb.9:
	movl	-44(%rbp), %eax
	movl	%eax, 4(%r15)
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	je	LBB0_15
## %bb.10:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.11:
	movl	-48(%rbp), %eax
	movl	%eax, (%r15)
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
LBB0_13:
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no device-tree node provided\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"clock-frequency"

	.comm	_S5K5BAF_DEFAULT_MCLK_FREQ,4,2  ## @S5K5BAF_DEFAULT_MCLK_FREQ
L_.str.2:                               ## @.str.2
	.asciz	"using default %u Hz clock frequency\n"

L_.str.3:                               ## @.str.3
	.asciz	"no endpoint defined at node %pOF\n"

L_.str.4:                               ## @.str.4
	.asciz	"unsupported bus in endpoint defined at node %pOF\n"

	.no_dead_strip	_s5k5baf_parse_device_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_parse_device_node
_s5k5baf_parse_device_node:             ; @s5k5baf_parse_device_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x20, [x1]
	str	xzr, [sp, #8]
	cbz	x20, LBB0_9
; %bb.1:
	mov	x21, x0
	add	x22, x0, #12
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_of_property_read_u32
	tbz	w0, #31, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _S5K5BAF_DEFAULT_MCLK_FREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S5K5BAF_DEFAULT_MCLK_FREQ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	str	w2, [x22]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_3:
	ldr	w0, [x21, #8]
	mov	x1, x19
	bl	_s5k5baf_parse_gpios
	tbnz	w0, #31, LBB0_10
; %bb.4:
	mov	x0, x20
	mov	x1, #0
	bl	_of_graph_get_next_endpoint
	cbz	x0, LBB0_11
; %bb.5:
	mov	x23, x0
	bl	_of_fwnode_handle
	add	x1, sp, #8
	bl	_v4l2_fwnode_endpoint_parse
	mov	x22, x0
	mov	x0, x23
	bl	_of_node_put
	cbnz	w22, LBB0_13
; %bb.6:
	ldr	w8, [sp, #12]
	str	w8, [x21, #4]
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_15
; %bb.8:
	mov	w22, #0
	ldr	w8, [sp, #8]
	str	w8, [x21]
	b	LBB0_13
LBB0_9:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x22, x0
	b	LBB0_13
LBB0_11:
	str	x20, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	mov	w22, #0
	b	LBB0_13
LBB0_15:
	str	x20, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no device-tree node provided\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"clock-frequency"

	.comm	_S5K5BAF_DEFAULT_MCLK_FREQ,4,2  ; @S5K5BAF_DEFAULT_MCLK_FREQ
l_.str.2:                               ; @.str.2
	.asciz	"using default %u Hz clock frequency\n"

l_.str.3:                               ; @.str.3
	.asciz	"no endpoint defined at node %pOF\n"

l_.str.4:                               ; @.str.4
	.asciz	"unsupported bus in endpoint defined at node %pOF\n"

	.no_dead_strip	_s5k5baf_parse_device_node
.subsections_via_symbols
