	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function go7007_alloc
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_go7007_alloc
	.p2align	4, 0x90
_go7007_alloc:                          ## @go7007_alloc
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$256, %edi                      ## imm = 0x100
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, 248(%rbx)
	movq	%r14, 240(%rbx)
	movl	$-1, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 224(%rbx)
	movq	216(%rbx), %rax
	movq	$0, (%rax)
	leaq	208(%rbx), %rdi
	callq	_mutex_init
	leaq	204(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	200(%rbx), %rdi
	callq	_spin_lock_init
	movq	_STATUS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 196(%rbx)
	leaq	192(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	addq	$168, %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 176(%rbx)
	callq	_init_waitqueue_head
	movq	$0, 160(%rbx)
	movq	%rbx, %rdi
	callq	_go7007_update_board
	xorps	%xmm0, %xmm0
	movups	%xmm0, 136(%rbx)
	movq	$0, 152(%rbx)
	movq	_V4L2_PIX_FMT_MJPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	movabsq	$4296467296, %rax               ## imm = 0x10016E360
	movq	%rax, 4(%rbx)
	movq	$0, 120(%rbx)
	movq	_GO7007_RATIO_1_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%rbx)
	movups	%xmm0, 96(%rbx)
	movups	%xmm0, 80(%rbx)
	movups	%xmm0, 64(%rbx)
	movups	%xmm0, 48(%rbx)
	movq	40(%rbx), %rax
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
	movq	32(%rbx), %rdi
	movl	$12992, %esi                    ## imm = 0x32C0
	callq	___bzero
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_STATUS_INIT,4,2                ## @STATUS_INIT
	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ## @V4L2_PIX_FMT_MJPEG
	.comm	_GO7007_RATIO_1_1,4,2           ## @GO7007_RATIO_1_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function go7007_alloc
lCPI0_0:
	.long	1500000                         ; 0x16e360
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_go7007_alloc
	.p2align	2
_go7007_alloc:                          ; @go7007_alloc
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #256
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	stp	x20, x21, [x19, #240]
	mov	w8, #-1
	str	w8, [x19]
	stp	xzr, xzr, [x19, #224]
	ldr	x8, [x19, #216]
	str	xzr, [x8]
	add	x0, x19, #208
	bl	_mutex_init
	add	x0, x19, #204
	bl	_init_waitqueue_head
	add	x0, x19, #200
	bl	_spin_lock_init
Lloh3:
	adrp	x8, _STATUS_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #196]
	add	x0, x19, #192
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x19, #168
	stp	xzr, xzr, [x19, #176]
	bl	_init_waitqueue_head
	str	xzr, [x19, #160]
	mov	x0, x19
	bl	_go7007_update_board
	stp	xzr, xzr, [x19, #144]
	str	xzr, [x19, #136]
Lloh6:
	adrp	x8, _V4L2_PIX_FMT_MJPEG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_PIX_FMT_MJPEG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #128]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
Lloh11:
	adrp	x8, _GO7007_RATIO_1_1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GO7007_RATIO_1_1@GOTPAGEOFF]
	str	xzr, [x19, #120]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #112]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #80]
	stp	q0, q0, [x19, #48]
	ldr	x8, [x19, #40]
	stp	q0, q0, [x8]
	ldr	x0, [x19, #32]
	mov	w1, #12992
	bl	_bzero
	stp	xzr, xzr, [x19, #16]
LBB0_2:
	mov	x0, 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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_STATUS_INIT,4,2                ; @STATUS_INIT
	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ; @V4L2_PIX_FMT_MJPEG
	.comm	_GO7007_RATIO_1_1,4,2           ; @GO7007_RATIO_1_1
.subsections_via_symbols
