	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_mc_parse_of_endpoint
_rvin_mc_parse_of_endpoint:             ## @rvin_mc_parse_of_endpoint
	.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	%rsi, %rbx
	callq	_dev_get_drvdata
	cmpl	$1, (%rbx)
	jne	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	_RVIN_CSI_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_5
## %bb.2:
	movq	(%r15), %rdi
	callq	_to_of_node
	movl	%eax, %edi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	(%r14), %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	8(%rbx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	movq	(%r15), %rdi
	je	LBB0_9
## %bb.4:
	callq	_to_of_node
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_vin_dbg
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r15), %rdi
	callq	_to_of_node
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_vin_dbg
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	%rdi, (%rax,%rcx,8)
	callq	_to_of_node
	movq	8(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_vin_dbg
LBB0_10:
	movq	(%r14), %rdi
	callq	_mutex_unlock
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_RVIN_CSI_MAX,8,3               ## @RVIN_CSI_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OF device %pOF disabled, ignoring\n"

	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
L_.str.1:                               ## @.str.1
	.asciz	"OF device %pOF already handled\n"

L_.str.2:                               ## @.str.2
	.asciz	"Add group OF device %pOF to slot %u\n"

	.no_dead_strip	_rvin_mc_parse_of_endpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_mc_parse_of_endpoint
_rvin_mc_parse_of_endpoint:             ; @rvin_mc_parse_of_endpoint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	bl	_dev_get_drvdata
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _RVIN_CSI_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RVIN_CSI_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x0, [x21]
	bl	_to_of_node
	bl	_of_device_is_available
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x0, [x19]
	bl	_mutex_lock
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	x9, [x20, #8]
	ldr	x10, [x8, x9, lsl #3]
	ldr	x0, [x21]
	cbz	x10, LBB0_9
; %bb.4:
	bl	_to_of_node
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_vin_dbg
Lloh5:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	x0, [x21]
	bl	_to_of_node
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_vin_dbg
Lloh12:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	str	x0, [x8, x9, lsl #3]
	bl	_to_of_node
	mov	x2, x0
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_vin_dbg
	mov	w20, #0
LBB0_10:
	ldr	x0, [x19]
	bl	_mutex_unlock
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RVIN_CSI_MAX,8,3               ; @RVIN_CSI_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OF device %pOF disabled, ignoring\n"

	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
l_.str.1:                               ; @.str.1
	.asciz	"OF device %pOF already handled\n"

l_.str.2:                               ; @.str.2
	.asciz	"Add group OF device %pOF to slot %u\n"

	.no_dead_strip	_rvin_mc_parse_of_endpoint
.subsections_via_symbols
