	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avresample_set_compensation    ## -- Begin function avresample_set_compensation
	.p2align	4, 0x90
_avresample_set_compensation:           ## @avresample_set_compensation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	js	LBB0_5
## %bb.1:
	movl	%edx, %ecx
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	testl	%ecx, %ecx
	je	LBB0_5
LBB0_3:
	cmpl	$0, 8(%rdi)
	je	LBB0_4
## %bb.6:
	movq	(%rdi), %r8
	movl	%ecx, (%r8)
	movl	8(%r8), %edi
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	imull	%edi, %esi
	movl	%esi, %eax
	cltd
	idivl	%ecx
	subl	%eax, %edi
LBB0_8:
	movl	%edi, 4(%r8)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to set resampling compensation\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avresample_set_compensation    ; -- Begin function avresample_set_compensation
	.p2align	2
_avresample_set_compensation:           ; @avresample_set_compensation
	.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
	tbnz	w2, #31, LBB0_8
; %bb.1:
	cbz	w1, LBB0_3
; %bb.2:
	cbz	w2, LBB0_8
LBB0_3:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_7
; %bb.4:
	ldr	x8, [x0]
	str	w2, [x8]
	ldr	w9, [x8, #8]
	cbz	w2, LBB0_6
; %bb.5:
	mul	w10, w9, w1
	sdiv	w10, w10, w2
	sub	w9, w9, w10
LBB0_6:
	str	w9, [x8, #4]
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to set resampling compensation\n"

.subsections_via_symbols
