	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_oss_register_minor
_snd_pcm_oss_register_minor:            ## @snd_pcm_oss_register_minor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	callq	_oss_pcm
	movq	$0, 8(%rax)
	movq	_dsp_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movl	16(%rbx), %ecx
	cmpl	%ecx, (%rdx,%rax,4)
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_register_oss_dsp
	movq	32(%rbx), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.2(%rip), %rcx
	cmpq	$0, (%rax,%rdx,8)
	jle	LBB0_4
## %bb.2:
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_4
## %bb.3:
	movq	_SNDRV_PCM_INFO_HALF_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
LBB0_4:
	movq	8(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-144(%rbp), %rdi
	callq	_sprintf
	movq	%rbx, %rdi
	callq	_oss_pcm
	incq	8(%rax)
	movq	%rbx, %rdi
	callq	_oss_pcm
	orb	$1, (%rax)
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movl	16(%rbx), %ecx
LBB0_5:
	movq	_adsp_map@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	%ecx, (%rdx,%rax,4)
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_register_oss_dsp
	movq	%rbx, %rdi
	callq	_oss_pcm
	incq	8(%rax)
	movq	%rbx, %rdi
	callq	_oss_pcm
	orb	$2, (%rax)
LBB0_7:
	movq	%rbx, %rdi
	callq	_oss_pcm
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_snd_pcm_oss_proc_init
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_dsp_map,8,3                    ## @dsp_map
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_SNDRV_PCM_INFO_HALF_DUPLEX,4,2 ## @SNDRV_PCM_INFO_HALF_DUPLEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

L_.str.1:                               ## @.str.1
	.asciz	" (DUPLEX)"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_adsp_map,8,3                   ## @adsp_map
	.comm	_SNDRV_OSS_INFO_DEV_AUDIO,4,2   ## @SNDRV_OSS_INFO_DEV_AUDIO
	.no_dead_strip	_snd_pcm_oss_register_minor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_oss_register_minor
_snd_pcm_oss_register_minor:            ; @snd_pcm_oss_register_minor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_oss_pcm
	str	xzr, [x0, #8]
Lloh3:
	adrp	x8, _dsp_map@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dsp_map@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w10, [x9, x8, lsl #2]
	ldr	w9, [x19, #16]
	cmp	w10, w9
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_register_oss_dsp
	ldr	x8, [x19, #32]
Lloh6:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	cbz	x8, LBB0_5
; %bb.3:
Lloh14:
	adrp	x8, _SNDRV_PCM_INFO_HALF_DUPLEX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SNDRV_PCM_INFO_HALF_DUPLEX@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x10, l_.str.1@PAGE
Lloh18:
	add	x10, x10, l_.str.1@PAGEOFF
	tst	w8, w9
	csel	x3, x10, x3, eq
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_5:
	ldr	x2, [x19, #8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
	mov	x0, x19
	bl	_oss_pcm
	ldr	x8, [x0, #8]
	add	x8, x8, #1
	str	x8, [x0, #8]
	mov	x0, x19
	bl	_oss_pcm
	ldr	w8, [x0]
	orr	w8, w8, #0x1
	str	w8, [x0]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w9, [x19, #16]
LBB0_6:
Lloh23:
	adrp	x10, _adsp_map@GOTPAGE
Lloh24:
	ldr	x10, [x10, _adsp_map@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	ldr	w8, [x10, x8, lsl #2]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #1
	bl	_register_oss_dsp
	mov	x0, x19
	bl	_oss_pcm
	ldr	x8, [x0, #8]
	add	x8, x8, #1
	str	x8, [x0, #8]
	mov	x0, x19
	bl	_oss_pcm
	ldr	w8, [x0]
	orr	w8, w8, #0x2
	str	w8, [x0]
LBB0_8:
	mov	x0, x19
	bl	_oss_pcm
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_snd_pcm_oss_proc_init
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_dsp_map,8,3                    ; @dsp_map
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_SNDRV_PCM_INFO_HALF_DUPLEX,4,2 ; @SNDRV_PCM_INFO_HALF_DUPLEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

l_.str.1:                               ; @.str.1
	.asciz	" (DUPLEX)"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_adsp_map,8,3                   ; @adsp_map
	.comm	_SNDRV_OSS_INFO_DEV_AUDIO,4,2   ; @SNDRV_OSS_INFO_DEV_AUDIO
	.no_dead_strip	_snd_pcm_oss_register_minor
.subsections_via_symbols
