	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_get_linesize
_image_get_linesize:                    ## @image_get_linesize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	testq	%r8, %r8
	je	LBB0_7
## %bb.1:
	testl	%edi, %edi
	js	LBB0_7
## %bb.2:
	movl	%ecx, %eax
	movl	%edx, %esi
	decl	%eax
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	ja	LBB0_4
## %bb.3:
	movl	(%r8), %ecx
LBB0_4:
	movl	$1, %eax
	shll	%cl, %eax
	addl	%eax, %edi
	decl	%edi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.5:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%edi
	cmpl	%esi, %eax
	jge	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	imull	%esi, %edi
	movq	_AV_PIX_FMT_FLAG_BITSTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	7(%rdi), %eax
	sarl	$3, %eax
	testl	%ecx, 4(%r8)
	cmovel	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_PIX_FMT_FLAG_BITSTREAM,4,2  ## @AV_PIX_FMT_FLAG_BITSTREAM
	.no_dead_strip	_image_get_linesize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_get_linesize
_image_get_linesize:                    ; @image_get_linesize
	.cfi_startproc
; %bb.0:
	cbz	x4, LBB0_7
; %bb.1:
	tbnz	w0, #31, LBB0_7
; %bb.2:
	sub	w8, w3, #1
	cmp	w8, #1
	b.hi	LBB0_4
; %bb.3:
	ldr	w8, [x4]
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
	mov	w9, #1
	lsl	w9, w9, w8
	add	w9, w0, w9
	sub	w9, w9, #1
	asr	w8, w9, w8
	cbz	w8, LBB0_8
; %bb.6:
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w9, w9, w8
	cmp	w9, w2
	b.ge	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	_AVERROR
LBB0_8:
	mul	w8, w8, w2
	ldr	w9, [x4, #4]
Lloh6:
	adrp	x10, _AV_PIX_FMT_FLAG_BITSTREAM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_PIX_FMT_FLAG_BITSTREAM@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	add	w11, w8, #7
	asr	w11, w11, #3
	tst	w10, w9
	csel	w0, w8, w11, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_PIX_FMT_FLAG_BITSTREAM,4,2  ; @AV_PIX_FMT_FLAG_BITSTREAM
	.no_dead_strip	_image_get_linesize
.subsections_via_symbols
