	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_opl3_set_connection
_snd_opl3_set_connection:               ## @snd_opl3_set_connection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_SNDRV_DM_FM_MODE_OPL3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_OPL3_RIGHT_4OP_0@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	_OPL3_RIGHT_4OP_1@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	orl	%eax, %ecx
	movq	_OPL3_RIGHT_4OP_2@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	_OPL3_LEFT_4OP_0@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	movq	_OPL3_LEFT_4OP_1@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	_OPL3_LEFT_4OP_2@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	orl	%eax, %ecx
	orl	%edx, %ecx
	andl	%ecx, %esi
	movzbl	%sil, %edx
	movq	_OPL3_RIGHT@GOTPCREL(%rip), %rax
	movq	_OPL3_REG_CONNECTION_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	*8(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_DM_FM_MODE_OPL3,8,3      ## @SNDRV_DM_FM_MODE_OPL3
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OPL3_RIGHT_4OP_0,4,2           ## @OPL3_RIGHT_4OP_0
	.comm	_OPL3_RIGHT_4OP_1,4,2           ## @OPL3_RIGHT_4OP_1
	.comm	_OPL3_RIGHT_4OP_2,4,2           ## @OPL3_RIGHT_4OP_2
	.comm	_OPL3_LEFT_4OP_0,4,2            ## @OPL3_LEFT_4OP_0
	.comm	_OPL3_LEFT_4OP_1,4,2            ## @OPL3_LEFT_4OP_1
	.comm	_OPL3_LEFT_4OP_2,4,2            ## @OPL3_LEFT_4OP_2
	.comm	_OPL3_RIGHT,4,2                 ## @OPL3_RIGHT
	.comm	_OPL3_REG_CONNECTION_SELECT,4,2 ## @OPL3_REG_CONNECTION_SELECT
	.no_dead_strip	_snd_opl3_set_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_opl3_set_connection
_snd_opl3_set_connection:               ; @snd_opl3_set_connection
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SNDRV_DM_FM_MODE_OPL3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_DM_FM_MODE_OPL3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OPL3_RIGHT_4OP_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPL3_RIGHT_4OP_0@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh5:
	adrp	x9, _OPL3_RIGHT_4OP_1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OPL3_RIGHT_4OP_1@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _OPL3_RIGHT_4OP_2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OPL3_RIGHT_4OP_2@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _OPL3_LEFT_4OP_0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OPL3_LEFT_4OP_0@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _OPL3_LEFT_4OP_1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OPL3_LEFT_4OP_1@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _OPL3_LEFT_4OP_2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OPL3_LEFT_4OP_2@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
	and	w8, w1, w8
	and	w2, w8, #0xff
Lloh15:
	adrp	x8, _OPL3_RIGHT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OPL3_RIGHT@GOTPAGEOFF]
	ldr	x9, [x0, #8]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x10, _OPL3_REG_CONNECTION_SELECT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _OPL3_REG_CONNECTION_SELECT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w1, w10, w8
	blr	x9
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_DM_FM_MODE_OPL3,8,3      ; @SNDRV_DM_FM_MODE_OPL3
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OPL3_RIGHT_4OP_0,4,2           ; @OPL3_RIGHT_4OP_0
	.comm	_OPL3_RIGHT_4OP_1,4,2           ; @OPL3_RIGHT_4OP_1
	.comm	_OPL3_RIGHT_4OP_2,4,2           ; @OPL3_RIGHT_4OP_2
	.comm	_OPL3_LEFT_4OP_0,4,2            ; @OPL3_LEFT_4OP_0
	.comm	_OPL3_LEFT_4OP_1,4,2            ; @OPL3_LEFT_4OP_1
	.comm	_OPL3_LEFT_4OP_2,4,2            ; @OPL3_LEFT_4OP_2
	.comm	_OPL3_RIGHT,4,2                 ; @OPL3_RIGHT
	.comm	_OPL3_REG_CONNECTION_SELECT,4,2 ; @OPL3_REG_CONNECTION_SELECT
	.no_dead_strip	_snd_opl3_set_connection
.subsections_via_symbols
