	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uds_enum_frame_size
_uds_enum_frame_size:                   ## @uds_enum_frame_size
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_to_uds
	movq	%rax, %r14
	movl	56(%r12), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_vsp1_entity_get_pad_config
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_UDS_PAD_SINK@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_vsp1_entity_get_pad_format
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, 48(%r12)
	jne	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.5:
	movq	8(%r12), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_UDS_MIN_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movq	_UDS_MAX_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%r12)
	movq	%rax, 24(%r12)
	movq	%rcx, 16(%r12)
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	12(%r15), %edi
	leaq	40(%r12), %rsi
	leaq	32(%r12), %rdx
	callq	_uds_output_limits
	movl	8(%r15), %edi
	leaq	24(%r12), %rsi
	addq	$16, %r12
	movq	%r12, %rdx
	callq	_uds_output_limits
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UDS_PAD_SINK,8,3               ## @UDS_PAD_SINK
	.comm	_UDS_MIN_SIZE,8,3               ## @UDS_MIN_SIZE
	.comm	_UDS_MAX_SIZE,8,3               ## @UDS_MAX_SIZE
	.no_dead_strip	_uds_enum_frame_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uds_enum_frame_size
_uds_enum_frame_size:                   ; @uds_enum_frame_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	bl	_to_uds
	mov	x19, x0
	ldr	w2, [x20, #56]
	mov	x1, x21
	bl	_vsp1_entity_get_pad_config
	cbz	x0, LBB0_7
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x22, _UDS_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _UDS_PAD_SINK@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x0, x19
	bl	_vsp1_entity_get_pad_format
	mov	x21, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	mov	w21, #0
Lloh2:
	adrp	x8, _UDS_MIN_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UDS_MIN_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _UDS_MAX_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _UDS_MAX_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	ldr	x9, [x9]
	stp	x9, x8, [x20, #32]
	stp	x9, x8, [x20, #16]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x21, #12]
	add	x1, x20, #40
	add	x2, x20, #32
	bl	_uds_output_limits
	ldr	w0, [x21, #8]
	add	x1, x20, #24
	add	x2, x20, #16
	bl	_uds_output_limits
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UDS_PAD_SINK,8,3               ; @UDS_PAD_SINK
	.comm	_UDS_MIN_SIZE,8,3               ; @UDS_MIN_SIZE
	.comm	_UDS_MAX_SIZE,8,3               ; @UDS_MAX_SIZE
	.no_dead_strip	_uds_enum_frame_size
.subsections_via_symbols
