	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_graph_new_component       ## -- Begin function mmal_graph_new_component
	.p2align	4, 0x90
_mmal_graph_new_component:              ## @mmal_graph_new_component
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_LOG_TRACE
	movq	(%rbx), %rax
	movq	_GRAPH_CONNECTIONS_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mmal_component_create
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%rbx)
	movq	%rax, (%rdx,%rcx,8)
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rdi
	callq	_mmal_component_acquire
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
LBB0_6:
	movq	(%r13), %r12
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_ENOSPC@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_7
LBB0_3:
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_7:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"graph: %p, name: %s, component: %p"

	.comm	_GRAPH_CONNECTIONS_MAX,8,3      ## @GRAPH_CONNECTIONS_MAX
L_.str.1:                               ## @.str.1
	.asciz	"no space for component %s"

	.comm	_MMAL_ENOSPC,8,3                ## @MMAL_ENOSPC
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"could not create component %s (%i)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_graph_new_component       ; -- Begin function mmal_graph_new_component
	.p2align	2
_mmal_graph_new_component:              ; @mmal_graph_new_component
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_LOG_TRACE
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _GRAPH_CONNECTIONS_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GRAPH_CONNECTIONS_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	bl	_mmal_component_create
Lloh5:
	adrp	x23, _MMAL_SUCCESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	ldp	x10, x9, [x21]
	add	x11, x10, #1
	str	x11, [x21]
	str	x8, [x9, x10, lsl #3]
	cbz	x19, LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_mmal_component_acquire
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_4:
	ldr	x22, [x23]
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_LOG_ERROR
Lloh9:
	adrp	x8, _MMAL_ENOSPC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMAL_ENOSPC@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	b	LBB0_7
LBB0_6:
	mov	x22, x0
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_LOG_ERROR
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"graph: %p, name: %s, component: %p"

	.comm	_GRAPH_CONNECTIONS_MAX,8,3      ; @GRAPH_CONNECTIONS_MAX
l_.str.1:                               ; @.str.1
	.asciz	"no space for component %s"

	.comm	_MMAL_ENOSPC,8,3                ; @MMAL_ENOSPC
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"could not create component %s (%i)"

.subsections_via_symbols
