	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_poseidon_audio_init            ## -- Begin function poseidon_audio_init
	.p2align	4, 0x90
_poseidon_audio_init:                   ## @poseidon_audio_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %r8
	movl	$-1, %edi
	xorl	%ecx, %ecx
	callq	_snd_card_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-24(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_snd_pcm_new
	movq	-32(%rbp), %rdi
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pcm_capture_ops@GOTPCREL(%rip), %rdx
	callq	_snd_pcm_set_ops
	movq	-32(%rbp), %rax
	movq	$0, 16(%rax)
	movq	%r14, 8(%rax)
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcpy
	movq	-24(%rbp), %rax
	movl	8(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcpy
	movq	-24(%rbp), %rax
	movl	4(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcpy
	movq	-24(%rbp), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcpy
	movq	-24(%rbp), %rdi
	callq	_snd_card_register
	movq	-24(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_snd_card_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	movq	%rdi, (%r14)
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Telegent"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"poseidon audio"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_pcm_capture_ops,4,2            ## @pcm_capture_ops
L_.str.2:                               ## @.str.2
	.asciz	"poseidon audio capture"

L_.str.3:                               ## @.str.3
	.asciz	"ALSA driver"

L_.str.4:                               ## @.str.4
	.asciz	"poseidon Audio"

L_.str.5:                               ## @.str.5
	.asciz	"poseidon ALSA Audio"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_poseidon_audio_init            ; -- Begin function poseidon_audio_init
	.p2align	2
_poseidon_audio_init:                   ; @poseidon_audio_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #8
	mov	w0, #-1
	mov	w3, #0
	bl	_snd_card_create
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x5, sp
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	bl	_snd_pcm_new
	ldr	x0, [sp]
Lloh7:
	adrp	x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, _pcm_capture_ops@GOTPAGE
Lloh11:
	ldr	x2, [x2, _pcm_capture_ops@GOTPAGEOFF]
	bl	_snd_pcm_set_ops
	ldr	x8, [sp]
	stp	x19, xzr, [x8, #8]
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcpy
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcpy
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcpy
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcpy
	ldr	x0, [sp, #8]
	bl	_snd_card_register
	ldr	x8, [sp, #8]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x8
	bl	_snd_card_free
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	str	x8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Telegent"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"poseidon audio"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_pcm_capture_ops,4,2            ; @pcm_capture_ops
l_.str.2:                               ; @.str.2
	.asciz	"poseidon audio capture"

l_.str.3:                               ; @.str.3
	.asciz	"ALSA driver"

l_.str.4:                               ; @.str.4
	.asciz	"poseidon Audio"

l_.str.5:                               ; @.str.5
	.asciz	"poseidon ALSA Audio"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
