	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writer_parameter_set
_writer_parameter_set:                  ## @writer_parameter_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$128, (%rsi)
	jne	LBB0_6
## %bb.1:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	cmpl	$0, 4(%r14)
	je	LBB0_3
## %bb.2:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rsi, %rbx
	movl	(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r14), %edi
	movl	(%rbx), %esi
	movl	$3, %edx
	callq	_strncpy
	movl	(%r14), %edi
	leaq	-20(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vc_container_open_writer
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movl	(%r14), %esi
	movl	-20(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
	movl	-20(%rbp), %edi
	callq	_container_map_to_mmal_status
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error opening file %s (%i)"

	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,4,2                ## @MMAL_ENOSYS
	.no_dead_strip	_writer_parameter_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writer_parameter_set
_writer_parameter_set:                  ; @writer_parameter_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x1]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	mov	x19, x1
	ldr	w0, [x20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20]
	ldr	w1, [x19]
	mov	w2, #3
	bl	_strncpy
	ldr	w0, [x20]
	add	x1, sp, #12
	mov	w2, #0
	mov	w3, #0
	bl	_vc_container_open_writer
	str	w0, [x20, #4]
	cbz	w0, LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	ldr	w0, [sp, #12]
	bl	_container_map_to_mmal_status
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error opening file %s (%i)"

	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,4,2                ; @MMAL_ENOSYS
	.no_dead_strip	_writer_parameter_set
.subsections_via_symbols
