	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ngene_buffer_config
_ngene_buffer_config:                   ## @ngene_buffer_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$96, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	(%rdi), %rax
	cmpl	$17, (%rax)
	jl	LBB0_8
## %bb.1:
	movq	l___const.ngene_buffer_config.tsin12_config+16(%rip), %rcx
	movq	%rcx, -16(%rbp)
	movaps	l___const.ngene_buffer_config.tsin12_config(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movq	l___const.ngene_buffer_config.tsin1234_config+16(%rip), %rcx
	movq	%rcx, -48(%rbp)
	movaps	l___const.ngene_buffer_config.tsin1234_config(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	l___const.ngene_buffer_config.tsio1235_config+16(%rip), %rcx
	movq	%rcx, -80(%rbp)
	movaps	l___const.ngene_buffer_config.tsio1235_config(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	leaq	-32(%rbp), %rsi
	movq	8(%rax), %rax
	movq	_NGENE_IO_TSIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_6
## %bb.2:
	testl	%ecx, 12(%rax)
	je	LBB0_6
## %bb.3:
	movq	_NGENE_IO_TSOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_4
## %bb.5:
	cmpq	$0, 8(%rdi)
	leaq	-64(%rbp), %rax
	leaq	-96(%rbp), %rsi
	cmoveq	%rax, %rsi
	jmp	LBB0_6
LBB0_8:
	movq	8(%rax), %rax
	movl	12(%rax), %eax
	movq	_NGENE_IO_TSIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.10:
	movq	_BUFFER_CONFIG_3333@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_BUFFER_CONFIG_4422@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_12
## %bb.13:
	addq	$96, %rsp
	popq	%rbp
	jmp	_ngene_command_config_buf       ## TAILCALL
LBB0_4:
	leaq	-64(%rbp), %rsi
LBB0_6:
	callq	_ngene_command_config_free_buf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_12
## %bb.7:
	addq	$96, %rsp
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.ngene_buffer_config.tsin12_config
l___const.ngene_buffer_config.tsin12_config:
	.long	96                              ## 0x60
	.long	96                              ## 0x60
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.p2align	4                               ## @__const.ngene_buffer_config.tsin1234_config
l___const.ngene_buffer_config.tsin1234_config:
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.long	0                               ## 0x0
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.long	0                               ## 0x0

	.p2align	4                               ## @__const.ngene_buffer_config.tsio1235_config
l___const.ngene_buffer_config.tsio1235_config:
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.long	0                               ## 0x0
	.long	40                              ## 0x28
	.long	0                               ## 0x0
	.long	56                              ## 0x38

	.comm	_NGENE_IO_TSIN,4,2              ## @NGENE_IO_TSIN
	.comm	_NGENE_IO_TSOUT,4,2             ## @NGENE_IO_TSOUT
	.comm	_BUFFER_CONFIG_4422,4,2         ## @BUFFER_CONFIG_4422
	.comm	_BUFFER_CONFIG_3333,4,2         ## @BUFFER_CONFIG_3333
	.no_dead_strip	_ngene_buffer_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ngene_buffer_config
_ngene_buffer_config:                   ; @ngene_buffer_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, #17
	b.lt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, l___const.ngene_buffer_config.tsin12_config@PAGE
Lloh4:
	add	x9, x9, l___const.ngene_buffer_config.tsin12_config@PAGEOFF
	ldr	q0, [x9]
	stur	q0, [x29, #-32]
	ldr	x9, [x9, #16]
	stur	x9, [x29, #-16]
Lloh5:
	adrp	x9, l___const.ngene_buffer_config.tsin1234_config@PAGE
Lloh6:
	add	x9, x9, l___const.ngene_buffer_config.tsin1234_config@PAGEOFF
	ldr	q0, [x9]
	str	q0, [sp, #32]
	ldr	x9, [x9, #16]
	str	x9, [sp, #48]
Lloh7:
	adrp	x9, l___const.ngene_buffer_config.tsio1235_config@PAGE
Lloh8:
	add	x9, x9, l___const.ngene_buffer_config.tsio1235_config@PAGEOFF
	ldr	q0, [x9]
	str	q0, [sp]
	ldr	x9, [x9, #16]
	str	x9, [sp, #16]
	ldr	x8, [x8, #8]
	ldr	w10, [x8, #8]
Lloh9:
	adrp	x9, _NGENE_IO_TSIN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NGENE_IO_TSIN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_7
; %bb.2:
	ldr	w10, [x8, #12]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.3:
	add	x1, sp, #32
	ldr	w8, [x8, #16]
Lloh12:
	adrp	x9, _NGENE_IO_TSOUT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NGENE_IO_TSOUT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	ldr	x8, [x0, #8]
	mov	x9, sp
	cmp	x8, #0
	csel	x1, x1, x9, eq
	b	LBB0_8
LBB0_5:
	ldr	x8, [x8, #8]
Lloh15:
	adrp	x9, _NGENE_IO_TSIN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NGENE_IO_TSIN@GOTPAGEOFF]
	ldr	w8, [x8, #12]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _BUFFER_CONFIG_3333@GOTPAGE
Lloh19:
	ldr	x10, [x10, _BUFFER_CONFIG_3333@GOTPAGEOFF]
Lloh20:
	adrp	x11, _BUFFER_CONFIG_4422@GOTPAGE
Lloh21:
	ldr	x11, [x11, _BUFFER_CONFIG_4422@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	ldur	x8, [x29, #-8]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ngene_command_config_buf
LBB0_7:
	sub	x1, x29, #32
LBB0_8:
	bl	_ngene_command_config_free_buf
	ldur	x8, [x29, #-8]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.ngene_buffer_config.tsin12_config
l___const.ngene_buffer_config.tsin12_config:
	.long	96                              ; 0x60
	.long	96                              ; 0x60
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.p2align	2                               ; @__const.ngene_buffer_config.tsin1234_config
l___const.ngene_buffer_config.tsin1234_config:
	.long	48                              ; 0x30
	.long	48                              ; 0x30
	.long	0                               ; 0x0
	.long	48                              ; 0x30
	.long	48                              ; 0x30
	.long	0                               ; 0x0

	.p2align	2                               ; @__const.ngene_buffer_config.tsio1235_config
l___const.ngene_buffer_config.tsio1235_config:
	.long	48                              ; 0x30
	.long	48                              ; 0x30
	.long	0                               ; 0x0
	.long	40                              ; 0x28
	.long	0                               ; 0x0
	.long	56                              ; 0x38

	.comm	_NGENE_IO_TSIN,4,2              ; @NGENE_IO_TSIN
	.comm	_NGENE_IO_TSOUT,4,2             ; @NGENE_IO_TSOUT
	.comm	_BUFFER_CONFIG_4422,4,2         ; @BUFFER_CONFIG_4422
	.comm	_BUFFER_CONFIG_3333,4,2         ; @BUFFER_CONFIG_3333
	.no_dead_strip	_ngene_buffer_config
.subsections_via_symbols
