	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usbmidi_detect_yamaha
_snd_usbmidi_detect_yamaha:             ## @snd_usbmidi_detect_yamaha
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_get_iface_desc
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.2:
	movslq	8(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_10
## %bb.3:
	movq	(%rbx), %rax
	leaq	(%rax,%rcx,4), %rcx
	leaq	4(%r15), %rbx
	movq	_USB_DT_CS_INTERFACE@GOTPCREL(%rip), %rsi
	movq	_UAC_MIDI_IN_JACK@GOTPCREL(%rip), %r9
	movq	_UAC_MIDI_OUT_JACK@GOTPCREL(%rip), %r8
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rdx), %edi
	addl	%edi, %edi
	incl	%edi
	movl	%edi, (%rdx)
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%rax), %rdx
	leaq	(%rax,%rdx,4), %rax
	cmpq	%rcx, %rax
	jae	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, (%rax)
	jl	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rax), %edx
	cmpl	(%rsi), %edx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rax), %edi
	movq	%r15, %rdx
	cmpl	(%r9), %edi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdx
	cmpl	(%r8), %edi
	je	LBB0_8
	jmp	LBB0_9
LBB0_10:
	cmpl	$0, (%r15)
	jne	LBB0_13
## %bb.11:
	cmpl	$0, 4(%r15)
	je	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_usbmidi_detect_endpoints   ## TAILCALL
LBB0_12:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_USB_DT_CS_INTERFACE,4,2        ## @USB_DT_CS_INTERFACE
	.comm	_UAC_MIDI_IN_JACK,4,2           ## @UAC_MIDI_IN_JACK
	.comm	_UAC_MIDI_OUT_JACK,4,2          ## @UAC_MIDI_OUT_JACK
	.no_dead_strip	_snd_usbmidi_detect_yamaha
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_usbmidi_detect_yamaha
_snd_usbmidi_detect_yamaha:             ; @snd_usbmidi_detect_yamaha
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x8]
	mov	x0, x21
	bl	_get_iface_desc
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_13
; %bb.2:
	ldrsw	x9, [x21, #8]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.3:
	ldr	x8, [x21]
	add	x9, x8, x9, lsl #2
	add	x10, x19, #4
Lloh0:
	adrp	x11, _USB_DT_CS_INTERFACE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _USB_DT_CS_INTERFACE@GOTPAGEOFF]
Lloh2:
	adrp	x12, _UAC_MIDI_IN_JACK@GOTPAGE
Lloh3:
	ldr	x12, [x12, _UAC_MIDI_IN_JACK@GOTPAGEOFF]
Lloh4:
	adrp	x13, _UAC_MIDI_OUT_JACK@GOTPAGE
Lloh5:
	ldr	x13, [x13, _UAC_MIDI_OUT_JACK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w15, [x14]
	mov	w16, #1
	bfi	w16, w15, #1, #31
	str	w16, [x14]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x14, [x8]
	add	x8, x8, x14, lsl #2
	cmp	x8, x9
	b.hs	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x8]
	cmp	w14, #2
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w14, [x8, #4]
	ldr	w15, [x11]
	cmp	w14, w15
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w15, [x8, #8]
	ldr	w16, [x12]
	mov	x14, x19
	cmp	w15, w16
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w16, [x13]
	mov	x14, x10
	cmp	w15, w16
	b.eq	LBB0_4
	b	LBB0_5
LBB0_10:
	ldr	w8, [x19]
	cbnz	w8, LBB0_12
; %bb.11:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_13
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_snd_usbmidi_detect_endpoints
LBB0_13:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_USB_DT_CS_INTERFACE,4,2        ; @USB_DT_CS_INTERFACE
	.comm	_UAC_MIDI_IN_JACK,4,2           ; @UAC_MIDI_IN_JACK
	.comm	_UAC_MIDI_OUT_JACK,4,2          ; @UAC_MIDI_OUT_JACK
	.no_dead_strip	_snd_usbmidi_detect_yamaha
.subsections_via_symbols
