	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_opl3_init_seq_oss          ## -- Begin function snd_opl3_init_seq_oss
	.p2align	4, 0x90
_snd_opl3_init_seq_oss:                 ## @snd_opl3_init_seq_oss
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_SNDRV_SEQ_DEV_ID_OSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %r8
	xorl	%esi, %esi
	movl	$24, %ecx
	callq	_snd_seq_device_new
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	-24(%rbp), %rax
	movq	%rax, 16(%rbx)
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	-24(%rbp), %rdi
	callq	_SNDRV_SEQ_DEVICE_ARGPTR
	movq	_SYNTH_TYPE_FM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	(%rbx), %rcx
	movq	_OPL3_HW_OPL3@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	_MAX_OPL3_VOICES@GOTPCREL(%rip), %rcx
	cmovlq	_MAX_OPL2_VOICES@GOTPCREL(%rip), %rcx
	movq	_FM_TYPE_OPL3@GOTPCREL(%rip), %rdx
	cmovlq	_FM_TYPE_ADLIB@GOTPCREL(%rip), %rdx
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	movl	%edx, 16(%rax)
	movl	%ecx, 12(%rax)
	movq	_oss_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rbx, (%rax)
	movq	%rbx, %rdi
	callq	_snd_opl3_oss_create_port
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movq	-24(%rbp), %rsi
	callq	_snd_device_register
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_SEQ_DEV_ID_OSS,4,2       ## @SNDRV_SEQ_DEV_ID_OSS
	.comm	_SYNTH_TYPE_FM,4,2              ## @SYNTH_TYPE_FM
	.comm	_OPL3_HW_OPL3,8,3               ## @OPL3_HW_OPL3
	.comm	_FM_TYPE_ADLIB,4,2              ## @FM_TYPE_ADLIB
	.comm	_MAX_OPL2_VOICES,4,2            ## @MAX_OPL2_VOICES
	.comm	_FM_TYPE_OPL3,4,2               ## @FM_TYPE_OPL3
	.comm	_MAX_OPL3_VOICES,4,2            ## @MAX_OPL3_VOICES
	.comm	_oss_callback,4,2               ## @oss_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_opl3_init_seq_oss          ; -- Begin function snd_opl3_init_seq_oss
	.p2align	2
_snd_opl3_init_seq_oss:                 ; @snd_opl3_init_seq_oss
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _SNDRV_SEQ_DEV_ID_OSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_SEQ_DEV_ID_OSS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #24
	bl	_snd_seq_device_new
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	str	x8, [x19, #16]
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #4
	bl	_strlcpy
	ldr	x0, [sp, #8]
	bl	_SNDRV_SEQ_DEVICE_ARGPTR
Lloh3:
	adrp	x8, _SYNTH_TYPE_FM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYNTH_TYPE_FM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #20]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _OPL3_HW_OPL3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OPL3_HW_OPL3@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _MAX_OPL2_VOICES@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_OPL2_VOICES@GOTPAGEOFF]
Lloh11:
	adrp	x11, _MAX_OPL3_VOICES@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MAX_OPL3_VOICES@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, lt
Lloh13:
	adrp	x9, _FM_TYPE_ADLIB@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FM_TYPE_ADLIB@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _FM_TYPE_OPL3@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FM_TYPE_OPL3@GOTPAGEOFF]
	csel	x9, x9, x10, lt
	ldr	w9, [x9]
	str	w9, [x0, #16]
Lloh17:
	adrp	x9, _oss_callback@GOTPAGE
Lloh18:
	ldr	x9, [x9, _oss_callback@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	str	x19, [x0]
	mov	x0, x19
	bl	_snd_opl3_oss_create_port
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	ldr	x1, [sp, #8]
	bl	_snd_device_register
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_SEQ_DEV_ID_OSS,4,2       ; @SNDRV_SEQ_DEV_ID_OSS
	.comm	_SYNTH_TYPE_FM,4,2              ; @SYNTH_TYPE_FM
	.comm	_OPL3_HW_OPL3,8,3               ; @OPL3_HW_OPL3
	.comm	_FM_TYPE_ADLIB,4,2              ; @FM_TYPE_ADLIB
	.comm	_MAX_OPL2_VOICES,4,2            ; @MAX_OPL2_VOICES
	.comm	_FM_TYPE_OPL3,4,2               ; @FM_TYPE_OPL3
	.comm	_MAX_OPL3_VOICES,4,2            ; @MAX_OPL3_VOICES
	.comm	_oss_callback,4,2               ; @oss_callback
.subsections_via_symbols
