	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_group_get
_rvin_group_get:                        ## @rvin_group_get
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	24(%r14), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_vin_err
	jmp	LBB0_2
LBB0_3:
	movq	-40(%rbp), %rcx
	movq	_RCAR_VIN_NUM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jae	LBB0_4
## %bb.5:
	movq	_rvin_group_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_rvin_group_data@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	leaq	16(%r15), %rdi
	callq	_kref_get
LBB0_13:
	movq	_rvin_group_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rax
	movq	-40(%rbp), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_vin_err
	movq	%r15, %rdi
	callq	_mutex_unlock
	addq	$16, %r15
	movq	_rvin_group_release@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kref_put
	jmp	LBB0_2
LBB0_4:
	movq	24(%r14), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_vin_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_rvin_group_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_vin_err
	jmp	LBB0_11
LBB0_15:
	movq	%r14, (%rax,%rdx,8)
	movq	%rdx, (%r14)
	movq	%r15, 16(%r14)
	leaq	4(%r15), %rax
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	_rvin_group_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_16
LBB0_12:
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_kref_init
	movq	%r15, (%r12)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"renesas,id"

L_.str.1:                               ## @.str.1
	.asciz	"%pOF: No renesas,id property found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RCAR_VIN_NUM,8,3               ## @RCAR_VIN_NUM
L_.str.2:                               ## @.str.2
	.asciz	"%pOF: Invalid renesas,id '%u'\n"

	.comm	_rvin_group_lock,4,2            ## @rvin_group_lock
	.comm	_rvin_group_data,8,3            ## @rvin_group_data
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Failed to initialize group\n"

L_.str.4:                               ## @.str.4
	.asciz	"Duplicate renesas,id property value %u\n"

	.comm	_rvin_group_release,4,2         ## @rvin_group_release
	.no_dead_strip	_rvin_group_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_group_get
_rvin_group_get:                        ; @rvin_group_get
	.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
	ldr	x8, [x0, #24]
	ldr	x0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	bl	_of_property_read_u32
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldr	x8, [sp, #24]
Lloh4:
	adrp	x9, _RCAR_VIN_NUM@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RCAR_VIN_NUM@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.3:
Lloh7:
	adrp	x0, _rvin_group_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _rvin_group_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh9:
	adrp	x22, _rvin_group_data@GOTPAGE
Lloh10:
	ldr	x22, [x22, _rvin_group_data@GOTPAGEOFF]
	ldr	x20, [x22]
	cbz	x20, LBB0_11
; %bb.4:
	add	x0, x20, #16
	bl	_kref_get
LBB0_5:
Lloh11:
	adrp	x0, _rvin_group_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _rvin_group_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x20
	bl	_mutex_lock
	ldr	x9, [x20, #8]
	ldr	x8, [sp, #24]
	ldr	x10, [x9, x8, lsl #3]
	cbz	x10, LBB0_14
; %bb.6:
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_vin_err
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, x20, #16
Lloh15:
	adrp	x8, _rvin_group_release@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rvin_group_release@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_kref_put
	b	LBB0_9
LBB0_7:
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
	stp	x9, x8, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_vin_err
LBB0_9:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	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
LBB0_11:
Lloh23:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.12:
	mov	x20, x0
	mov	x1, x19
	bl	_rvin_group_init
	cbz	w0, LBB0_17
; %bb.13:
	mov	x21, x0
	mov	x0, x20
	bl	_kfree
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_vin_err
	b	LBB0_16
LBB0_14:
	str	x19, [x9, x8, lsl #3]
	add	x9, x20, #4
	str	x8, [x19]
	stp	x9, x20, [x19, #8]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w21, #0
	b	LBB0_10
LBB0_15:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
Lloh31:
	adrp	x0, _rvin_group_lock@GOTPAGE
Lloh32:
	ldr	x0, [x0, _rvin_group_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_10
LBB0_17:
	add	x0, x20, #16
	bl	_kref_init
	str	x20, [x22]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"renesas,id"

l_.str.1:                               ; @.str.1
	.asciz	"%pOF: No renesas,id property found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RCAR_VIN_NUM,8,3               ; @RCAR_VIN_NUM
l_.str.2:                               ; @.str.2
	.asciz	"%pOF: Invalid renesas,id '%u'\n"

	.comm	_rvin_group_lock,4,2            ; @rvin_group_lock
	.comm	_rvin_group_data,8,3            ; @rvin_group_data
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Failed to initialize group\n"

l_.str.4:                               ; @.str.4
	.asciz	"Duplicate renesas,id property value %u\n"

	.comm	_rvin_group_release,4,2         ; @rvin_group_release
	.no_dead_strip	_rvin_group_get
.subsections_via_symbols
