	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_bps_params
_set_bps_params:                        ## @set_bps_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	cmpl	$24, %ecx
	je	LBB0_6
## %bb.1:
	cmpl	$16, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$8, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_AV_SAMPLE_FMT_U8P@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_AV_SAMPLE_FMT_S32P@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_AV_SAMPLE_FMT_S16P@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_SAMPLE_FMT_U8P,4,2          ## @AV_SAMPLE_FMT_U8P
	.comm	_AV_SAMPLE_FMT_S16P,4,2         ## @AV_SAMPLE_FMT_S16P
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ## @AV_SAMPLE_FMT_S32P
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid/unsupported bits per sample: %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_set_bps_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_bps_params
_set_bps_params:                        ; @set_bps_params
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w3, [x0]
	cmp	w3, #24
	b.eq	LBB0_4
; %bb.1:
	cmp	w3, #16
	b.eq	LBB0_5
; %bb.2:
	cmp	w3, #8
	b.ne	LBB0_7
; %bb.3:
	mov	w8, #0
Lloh0:
	adrp	x9, _AV_SAMPLE_FMT_U8P@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_SAMPLE_FMT_U8P@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	w8, #0
Lloh2:
	adrp	x9, _AV_SAMPLE_FMT_S32P@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_SAMPLE_FMT_S32P@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
Lloh4:
	adrp	x9, _AV_SAMPLE_FMT_S16P@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AV_SAMPLE_FMT_S16P@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	str	w9, [x0, #4]
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_SAMPLE_FMT_U8P,4,2          ; @AV_SAMPLE_FMT_U8P
	.comm	_AV_SAMPLE_FMT_S16P,4,2         ; @AV_SAMPLE_FMT_S16P
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ; @AV_SAMPLE_FMT_S32P
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid/unsupported bits per sample: %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_set_bps_params
.subsections_via_symbols
