	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_subdev_enum_mbus_code     ## -- Begin function vsp1_subdev_enum_mbus_code
	.p2align	4, 0x90
_vsp1_subdev_enum_mbus_code:            ## @vsp1_subdev_enum_mbus_code
	.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
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	callq	_to_vsp1_entity
	movq	%rax, %r14
	cmpq	$0, (%r15)
	movl	8(%r15), %eax
	je	LBB0_1
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	movl	16(%r15), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vsp1_entity_get_pad_config
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_vsp1_entity_get_pad_format
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_7
LBB0_1:
	cmpl	%ebx, %eax
	jae	LBB0_2
## %bb.3:
	movl	(%r12,%rax,4), %eax
	movl	%eax, 12(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_subdev_enum_mbus_code     ; -- Begin function vsp1_subdev_enum_mbus_code
	.p2align	2
_vsp1_subdev_enum_mbus_code:            ; @vsp1_subdev_enum_mbus_code
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	bl	_to_vsp1_entity
	ldr	x9, [x19]
	ldr	w8, [x19, #8]
	cbz	x9, LBB0_4
; %bb.1:
	cbnz	w8, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	w2, [x19, #16]
	mov	x1, x21
	bl	_vsp1_entity_get_pad_config
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_vsp1_entity_get_pad_format
	ldr	w8, [x0]
	str	w8, [x19, #12]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	cmp	w8, w23
	b.hs	LBB0_6
; %bb.5:
	mov	w0, #0
	ldr	w8, [x22, x8, lsl #2]
	str	w8, [x19, #12]
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
