	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_parameter_alloc_get  ## -- Begin function mmal_port_parameter_alloc_get
	.p2align	4, 0x90
_mmal_port_parameter_alloc_get:         ## @mmal_port_parameter_alloc_get
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	cmpl	$9, %edx
	movl	$8, %ebx
	cmovael	%edx, %ebx
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_vcos_calloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movl	%r12d, (%rax)
	movl	%ebx, 4(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mmal_port_parameter_get
	movq	%rax, %r13
	movq	_MMAL_ENOSPC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_4
## %bb.2:
	movl	4(%r14), %r13d
	movq	%r14, %rdi
	callq	_vcos_free
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movl	%r13d, %esi
	callq	_vcos_calloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movl	%r12d, (%rax)
	movl	%r13d, 4(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mmal_port_parameter_get
	movq	%rax, %r13
LBB0_4:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_vcos_free
	jmp	LBB0_7
LBB0_6:
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r13, (%rax)
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmal_port_param_get"

	.comm	_MMAL_ENOMEM,8,3                ## @MMAL_ENOMEM
	.comm	_MMAL_ENOSPC,8,3                ## @MMAL_ENOSPC
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_port_parameter_alloc_get  ; -- Begin function mmal_port_parameter_alloc_get
	.p2align	2
_mmal_port_parameter_alloc_get:         ; @mmal_port_parameter_alloc_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x23, x1
	mov	x21, x0
	mov	w8, #8
	cmp	w2, #8
	csel	w22, w2, w8, hi
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	x1, x22
	bl	_vcos_calloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.1:
	stp	w23, w22, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_mmal_port_parameter_get
Lloh2:
	adrp	x8, _MMAL_ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w22, [x20, #4]
	mov	x0, x20
	bl	_vcos_free
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	x1, x22
	bl	_vcos_calloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.3:
	stp	w23, w22, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_mmal_port_parameter_get
LBB0_4:
	mov	x22, x0
Lloh7:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_vcos_free
	mov	x20, #0
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _MMAL_ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMAL_ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x8]
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
	str	x22, [x19]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmal_port_param_get"

	.comm	_MMAL_ENOMEM,8,3                ; @MMAL_ENOMEM
	.comm	_MMAL_ENOSPC,8,3                ; @MMAL_ENOSPC
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
.subsections_via_symbols
