	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_component_supplier_register ## -- Begin function mmal_component_supplier_register
	.p2align	4, 0x90
_mmal_component_supplier_register:      ## @mmal_component_supplier_register
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$24, %esi
	xorl	%edx, %edx
	callq	_vcos_calloc
	movq	%rax, %rbx
	testq	%r14, %r14
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%r14, %rsi
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	callq	_LOG_TRACE
	movq	%rbx, %rdi
	callq	_vcos_verify
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r15d, 16(%rbx)
	movq	(%rbx), %rdi
	movq	_SUPPLIER_PREFIX_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rsi
	callq	_strncpy
	movq	(%rbx), %rax
	movslq	(%r15), %rcx
	movb	$0, -1(%rcx,%rax)
	movq	_suppliers@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movq	%rbx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LOG_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prefix %s fn %p"

L_.str.1:                               ## @.str.1
	.asciz	"NULL"

	.comm	_SUPPLIER_PREFIX_LEN,4,2        ## @SUPPLIER_PREFIX_LEN
	.comm	_suppliers,8,3                  ## @suppliers
L_.str.2:                               ## @.str.2
	.asciz	"no memory for supplier registry entry"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_component_supplier_register ; -- Begin function mmal_component_supplier_register
	.p2align	2
_mmal_component_supplier_register:      ; @mmal_component_supplier_register
	.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	x21, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #24
	mov	x2, #0
	bl	_vcos_calloc
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x20, #0
	csel	x1, x8, x20, eq
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_LOG_TRACE
	mov	x0, x19
	bl	_vcos_verify
	cbz	x0, LBB0_2
; %bb.1:
	str	w21, [x19, #16]
	ldr	x0, [x19]
Lloh4:
	adrp	x21, _SUPPLIER_PREFIX_LEN@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SUPPLIER_PREFIX_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_strncpy
	ldr	x8, [x19]
	ldrsw	x9, [x21]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
Lloh6:
	adrp	x8, _suppliers@GOTPAGE
Lloh7:
	ldr	x8, [x8, _suppliers@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19, #8]
	str	x19, [x8]
	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_2:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	b	_LOG_ERROR
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prefix %s fn %p"

l_.str.1:                               ; @.str.1
	.asciz	"NULL"

	.comm	_SUPPLIER_PREFIX_LEN,4,2        ; @SUPPLIER_PREFIX_LEN
	.comm	_suppliers,8,3                  ; @suppliers
l_.str.2:                               ; @.str.2
	.asciz	"no memory for supplier registry entry"

.subsections_via_symbols
