	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetDevNum
_GetDevNum:                             ## @GetDevNum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_CB_GETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessage
	movq	_CB_ERR@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_5
## %bb.1:
	movq	_CB_GETITEMDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_SendMessage
	movslq	%eax, %rdi
	movq	%rdi, -40(%rbp)
	cmpl	(%r12), %edi
	je	LBB0_5
## %bb.2:
	callq	_IntToPtr
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_mixerGetID
	movq	_MMSYSERR_NOERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	-40(%rbp), %r15
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CB_GETCURSEL,4,2               ## @CB_GETCURSEL
	.comm	_CB_ERR,4,2                     ## @CB_ERR
	.comm	_CB_GETITEMDATA,4,2             ## @CB_GETITEMDATA
	.comm	_MMSYSERR_NOERROR,8,3           ## @MMSYSERR_NOERROR
	.no_dead_strip	_GetDevNum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetDevNum
_GetDevNum:                             ; @GetDevNum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CB_GETCURSEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CB_GETCURSEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessage
Lloh3:
	adrp	x21, _CB_ERR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CB_ERR@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x2, x0
Lloh5:
	adrp	x8, _CB_GETITEMDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CB_GETITEMDATA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_SendMessage
	mov	x8, x0
	sxtw	x0, w8
	str	x0, [sp, #8]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	mov	x0, #0
	b	LBB0_4
LBB0_3:
	bl	_IntToPtr
	add	x1, sp, #8
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x2, x19
	bl	_mixerGetID
Lloh8:
	adrp	x8, _MMSYSERR_NOERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMSYSERR_NOERROR@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	cmp	x0, x8
	csel	x0, x9, xzr, eq
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CB_GETCURSEL,4,2               ; @CB_GETCURSEL
	.comm	_CB_ERR,4,2                     ; @CB_ERR
	.comm	_CB_GETITEMDATA,4,2             ; @CB_GETITEMDATA
	.comm	_MMSYSERR_NOERROR,8,3           ; @MMSYSERR_NOERROR
	.no_dead_strip	_GetDevNum
.subsections_via_symbols
