	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zoran_open_init_session
_zoran_open_init_session:               ## @zoran_open_init_session
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %r15
	callq	_map_mode_raw
	movq	8(%r15), %rax
	movq	%rax, 40(%rbx)
	movq	$0, 48(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 40(%rbx)
	movq	_ZORAN_FREE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 32(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_MAX_FRAME@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	16(%rbx), %rcx
	xorl	%edx, %edx
	movq	_BUZ_STATE_USER@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, 4(%rcx,%rdx,8)
	movl	%edx, (%rcx,%rdx,8)
	incq	%rdx
	movslq	(%rax), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_2
LBB0_3:
	movq	$0, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZORAN_FREE,8,3                 ## @ZORAN_FREE
	.comm	_MAX_FRAME,4,2                  ## @MAX_FRAME
	.comm	_BUZ_STATE_USER,4,2             ## @BUZ_STATE_USER
	.no_dead_strip	_zoran_open_init_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zoran_open_init_session
_zoran_open_init_session:               ; @zoran_open_init_session
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x21, [x0, #56]
	bl	_map_mode_raw
	ldr	x8, [x21, #8]
	str	xzr, [x19, #48]
Lloh0:
	adrp	x20, _ZORAN_FREE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ZORAN_FREE@GOTPAGEOFF]
	ldr	x9, [x20]
	str	x8, [x19, #40]
	ldr	w8, [x21, #8]
	str	w8, [x19, #40]
	str	x9, [x19, #32]
	ldr	d0, [x21]
	str	d0, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _MAX_FRAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_FRAME@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #16]
	add	x10, x10, #4
Lloh4:
	adrp	x11, _BUZ_STATE_USER@GOTPAGE
Lloh5:
	ldr	x11, [x11, _BUZ_STATE_USER@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	stp	w9, w12, [x10, #-4]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	add	x10, x10, #8
	cmp	x9, x12
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x20]
	stp	x8, xzr, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ZORAN_FREE,8,3                 ; @ZORAN_FREE
	.comm	_MAX_FRAME,4,2                  ; @MAX_FRAME
	.comm	_BUZ_STATE_USER,4,2             ; @BUZ_STATE_USER
	.no_dead_strip	_zoran_open_init_session
.subsections_via_symbols
