	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_vc_port_by_number
_mmal_vc_port_by_number:                ## @mmal_vc_port_by_number
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	xorl	%edi, %edi
	cmpl	%r14d, 4(%rbx)
	setg	%dil
	callq	_vcos_assert
	movslq	%r14d, %rax
	shlq	$3, %rax
	addq	24(%rbx), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_4:
	xorl	%edi, %edi
	cmpl	%r14d, (%rbx)
	setg	%dil
	callq	_vcos_assert
	movslq	%r14d, %rax
	shlq	$3, %rax
	addq	32(%rbx), %rax
	jmp	LBB0_7
LBB0_3:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	sete	%dil
	callq	_vcos_assert
	addq	$40, %rbx
	jmp	LBB0_8
LBB0_6:
	xorl	%edi, %edi
	cmpl	%r14d, 8(%rbx)
	setg	%dil
	callq	_vcos_assert
	movslq	%r14d, %rax
	shlq	$3, %rax
	addq	16(%rbx), %rax
LBB0_7:
	movq	%rax, %rbx
LBB0_8:
	movq	(%rbx), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_mmal_vc_port_by_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_vc_port_by_number
_mmal_vc_port_by_number:                ; @mmal_vc_port_by_number
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_remember_state
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	cset	w0, gt
	bl	_vcos_assert
	ldr	x8, [x19, #24]
	b	LBB0_7
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	mov	x0, #0
	ret
LBB0_4:
	.cfi_restore_state
	ldr	w8, [x19]
	cmp	w8, w20
	cset	w0, gt
	bl	_vcos_assert
	ldr	x8, [x19, #32]
	b	LBB0_7
LBB0_5:
	cmp	w20, #0
	cset	w0, eq
	bl	_vcos_assert
	add	x8, x19, #40
	b	LBB0_8
LBB0_6:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	cset	w0, gt
	bl	_vcos_assert
	ldr	x8, [x19, #16]
LBB0_7:
	add	x8, x8, w20, sxtw #3
LBB0_8:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_mmal_vc_port_by_number
.subsections_via_symbols
