	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_graph_find_port           ## -- Begin function mmal_graph_find_port
	.p2align	4, 0x90
_mmal_graph_find_port:                  ## @mmal_graph_find_port
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	cmpl	$0, (%rdi)
	je	LBB0_14
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	movq	40(%r14), %r14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	ja	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jae	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %r14
	movl	48(%r14), %esi
	movq	%r12, %rdi
	callq	_vcos_strcasecmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MMAL_PORT_TYPE_OUTPUT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %eax
	movq	32(%r14), %r14
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MMAL_PORT_TYPE_CLOCK@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r14), %eax
	movq	24(%r14), %r14
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MMAL_PORT_TYPE_CONTROL@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r14
	movl	$1, %eax
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_LOG_INFO
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	(%r14,%rax,8), %rbx
	jmp	LBB0_15
LBB0_16:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_vcos_assert
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ## @MMAL_PORT_TYPE_INPUT
	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ## @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_CLOCK,8,3       ## @MMAL_PORT_TYPE_CLOCK
	.comm	_MMAL_PORT_TYPE_CONTROL,8,3     ## @MMAL_PORT_TYPE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %s:%d not found"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_graph_find_port           ; -- Begin function mmal_graph_find_port
	.p2align	2
_mmal_graph_find_port:                  ; @mmal_graph_find_port
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x1
	ldr	w8, [x0]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x21, x2
	mov	x22, x0
	mov	x23, #0
Lloh0:
	adrp	x24, _MMAL_PORT_TYPE_INPUT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MMAL_PORT_TYPE_INPUT@GOTPAGEOFF]
Lloh2:
	adrp	x25, _MMAL_PORT_TYPE_OUTPUT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MMAL_PORT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _MMAL_PORT_TYPE_CLOCK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MMAL_PORT_TYPE_CLOCK@GOTPAGEOFF]
Lloh6:
	adrp	x27, _MMAL_PORT_TYPE_CONTROL@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MMAL_PORT_TYPE_CONTROL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	ldr	x9, [x28, #40]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, w19
	b.hi	LBB0_16
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	w8, [x22]
	cmp	x23, x8
	b.hs	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x28, [x8, x23, lsl #3]
	ldr	w1, [x28, #48]
	mov	x0, x20
	bl	_vcos_strcasecmp
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	cmp	x8, x21
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28, #4]
	ldr	x9, [x28, #32]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	cmp	x8, x21
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28, #8]
	ldr	x9, [x28, #24]
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27]
	cmp	x8, x21
	b.ne	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x28, #16
	mov	w8, #1
	b	LBB0_3
LBB0_13:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_LOG_INFO
LBB0_14:
	mov	x0, #0
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x0, [x9, w19, uxtw #3]
	b	LBB0_15
LBB0_17:
	mov	w0, #0
	bl	_vcos_assert
	b	LBB0_14
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ; @MMAL_PORT_TYPE_INPUT
	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ; @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_CLOCK,8,3       ; @MMAL_PORT_TYPE_CLOCK
	.comm	_MMAL_PORT_TYPE_CONTROL,8,3     ; @MMAL_PORT_TYPE_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %s:%d not found"

.subsections_via_symbols
