	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_hgo_create                ## -- Begin function vsp1_hgo_create
	.p2align	4, 0x90
_vsp1_hgo_create:                       ## @vsp1_hgo_create
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %r14
	leaq	16(%rax), %r12
	movq	(%r15), %rax
	xorl	%esi, %esi
	cmpl	$3, (%rax)
	sete	%sil
	incl	%esi
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_init
	movq	_hgo_max_rgb_control@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_new_custom
	movq	%rax, 32(%r13)
	movq	(%r15), %rax
	cmpl	$3, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_hgo_num_bins_control@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_new_custom
	movq	%rax, 24(%r14)
LBB0_4:
	movabsq	$274877906944, %rax             ## imm = 0x4000000000
	movq	%rax, (%r14)
	addq	$8, %r13
	movq	%r12, 8(%r14)
	movq	_VSP1_ENTITY_HGO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_hgo_mbus_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	_HGO_DATA_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_V4L2_META_FMT_VSP1_HGO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	movq	_hgo_entity_ops@GOTPCREL(%rip), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	%ebx, %r9d
	pushq	%r11
	pushq	%r10
	pushq	%rax
	callq	_vsp1_histogram_init
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_vsp1_entity_destroy
LBB0_6:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hgo_max_rgb_control,4,2        ## @hgo_max_rgb_control
	.comm	_hgo_num_bins_control,4,2       ## @hgo_num_bins_control
	.comm	_VSP1_ENTITY_HGO,4,2            ## @VSP1_ENTITY_HGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hgo"

	.comm	_hgo_entity_ops,4,2             ## @hgo_entity_ops
	.comm	_hgo_mbus_formats,4,2           ## @hgo_mbus_formats
	.comm	_HGO_DATA_SIZE,4,2              ## @HGO_DATA_SIZE
	.comm	_V4L2_META_FMT_VSP1_HGO,4,2     ## @V4L2_META_FMT_VSP1_HGO
.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 vsp1_hgo_create
lCPI0_0:
	.long	0                               ; 0x0
	.long	64                              ; 0x40
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vsp1_hgo_create
	.p2align	2
_vsp1_hgo_create:                       ; @vsp1_hgo_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x21, x0, #16
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #3
	mov	w8, #1
	cinc	w1, w8, eq
	mov	x0, x21
	bl	_v4l2_ctrl_handler_init
Lloh3:
	adrp	x1, _hgo_max_rgb_control@GOTPAGE
Lloh4:
	ldr	x1, [x1, _hgo_max_rgb_control@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, #0
	bl	_v4l2_ctrl_new_custom
	str	x0, [x19, #32]
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #3
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, _hgo_num_bins_control@GOTPAGE
Lloh6:
	ldr	x1, [x1, _hgo_num_bins_control@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, #0
	bl	_v4l2_ctrl_new_custom
	str	x0, [x19, #24]
LBB0_3:
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	x22, x19
	str	x21, [x22, #8]!
Lloh9:
	adrp	x8, _VSP1_ENTITY_HGO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VSP1_ENTITY_HGO@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _hgo_mbus_formats@GOTPAGE
Lloh13:
	ldr	x8, [x8, _hgo_mbus_formats@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x6, x0
Lloh15:
	adrp	x8, _HGO_DATA_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HGO_DATA_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w7, [x8]
Lloh18:
	adrp	x8, _V4L2_META_FMT_VSP1_HGO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_META_FMT_VSP1_HGO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
Lloh23:
	adrp	x4, _hgo_entity_ops@GOTPAGE
Lloh24:
	ldr	x4, [x4, _hgo_entity_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x5, x23
	bl	_vsp1_histogram_init
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
	mov	x20, x0
	mov	x0, x22
	bl	_vsp1_entity_destroy
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hgo_max_rgb_control,4,2        ; @hgo_max_rgb_control
	.comm	_hgo_num_bins_control,4,2       ; @hgo_num_bins_control
	.comm	_VSP1_ENTITY_HGO,4,2            ; @VSP1_ENTITY_HGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hgo"

	.comm	_hgo_entity_ops,4,2             ; @hgo_entity_ops
	.comm	_hgo_mbus_formats,4,2           ; @hgo_mbus_formats
	.comm	_HGO_DATA_SIZE,4,2              ; @HGO_DATA_SIZE
	.comm	_V4L2_META_FMT_VSP1_HGO,4,2     ; @V4L2_META_FMT_VSP1_HGO
.subsections_via_symbols
