	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hwdep_open
_snd_hwdep_open:                        ## @snd_hwdep_open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_imajor
	movq	_snd_major@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_iminor
	movq	_SNDRV_DEVICE_TYPE_HWDEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_snd_lookup_minor_data
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %r13
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_waitqueue_entry
	leaq	40(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_add_wait_queue
	movq	%r13, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_EAGAIN@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 48(%r13)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, (%r13)
	jg	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*%rax
	testl	%eax, %eax
	jns	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ebx
	movl	(%r12), %eax
	addl	%ebx, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	callq	_schedule
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	8(%r13), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_8
## %bb.19:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_3:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	-44(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_remove_wait_queue
	jmp	LBB0_24
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_14:
	leaq	-44(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_remove_wait_queue
	jmp	LBB0_27
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_21:
	movl	(%rax), %ebx
	leaq	-44(%rbp), %rsi
	callq	_remove_wait_queue
	testl	%ebx, %ebx
	jle	LBB0_24
## %bb.22:
	negl	%ebx
	jmp	LBB0_27
LBB0_24:
	movq	8(%r13), %rdi
	movq	%r14, %rsi
	callq	_snd_card_file_add
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_25
## %bb.29:
	movq	%r13, 8(%r14)
	incq	(%r13)
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_28
LBB0_25:
	movq	32(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.26:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*%rcx
LBB0_27:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_module_put
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_major,4,2                  ## @snd_major
	.comm	_SNDRV_DEVICE_TYPE_HWDEP,4,2    ## @SNDRV_DEVICE_TYPE_HWDEP
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_current,4,2                    ## @current
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_SNDRV_OSS_DEVICE_TYPE_DMFM,4,2 ## @SNDRV_OSS_DEVICE_TYPE_DMFM
	.comm	_SOUND_MAJOR,4,2                ## @SOUND_MAJOR
	.no_dead_strip	_snd_hwdep_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_hwdep_open
_snd_hwdep_open:                        ; @snd_hwdep_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_imajor
Lloh0:
	adrp	x8, _snd_major@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_major@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.1:
	mov	x0, x19
	bl	_iminor
Lloh3:
	adrp	x8, _SNDRV_DEVICE_TYPE_HWDEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_DEVICE_TYPE_HWDEP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_snd_lookup_minor_data
	cbz	x0, LBB0_14
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_15
; %bb.3:
Lloh6:
	adrp	x24, _current@GOTPAGE
Lloh7:
	ldr	x24, [x24, _current@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x0, sp, #12
	bl	_init_waitqueue_entry
	add	x22, x19, #40
	add	x1, sp, #12
	mov	x0, x22
	bl	_add_wait_queue
	add	x21, x19, #16
	mov	x0, x21
	bl	_mutex_lock
Lloh8:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
Lloh10:
	adrp	x27, _O_NONBLOCK@GOTPAGE
Lloh11:
	ldr	x27, [x27, _O_NONBLOCK@GOTPAGEOFF]
Lloh12:
	adrp	x25, _EBUSY@GOTPAGE
Lloh13:
	ldr	x25, [x25, _EBUSY@GOTPAGEOFF]
Lloh14:
	adrp	x28, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh15:
	ldr	x28, [x28, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	cmp	x8, #0
	b.gt	LBB0_21
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	blr	x8
	tbz	w0, #31, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	bl	_set_current_state
	mov	x0, x21
	bl	_mutex_unlock
	bl	_schedule
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	bl	_signal_pending
	cbz	x0, LBB0_4
; %bb.12:
Lloh16:
	adrp	x25, _ERESTARTSYS@GOTPAGE
Lloh17:
	ldr	x25, [x25, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_21
LBB0_13:
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh22:
	adrp	x8, _EFAULT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
	add	x1, sp, #12
	mov	x0, x22
	bl	_remove_wait_queue
	b	LBB0_23
LBB0_19:
	add	x1, sp, #12
	mov	x0, x22
	bl	_remove_wait_queue
	b	LBB0_27
LBB0_20:
Lloh24:
	adrp	x25, _ENODEV@GOTPAGE
Lloh25:
	ldr	x25, [x25, _ENODEV@GOTPAGEOFF]
LBB0_21:
	ldr	w23, [x25]
	add	x1, sp, #12
	mov	x0, x22
	bl	_remove_wait_queue
	cmp	w23, #0
	b.le	LBB0_23
; %bb.22:
	neg	w23, w23
	b	LBB0_27
LBB0_23:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_snd_card_file_add
	mov	x23, x0
	tbnz	w0, #31, LBB0_25
; %bb.24:
	str	x19, [x20, #8]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_17
LBB0_25:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_27:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_module_put
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_major,4,2                  ; @snd_major
	.comm	_SNDRV_DEVICE_TYPE_HWDEP,4,2    ; @SNDRV_DEVICE_TYPE_HWDEP
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_current,4,2                    ; @current
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_SNDRV_OSS_DEVICE_TYPE_DMFM,4,2 ; @SNDRV_OSS_DEVICE_TYPE_DMFM
	.comm	_SOUND_MAJOR,4,2                ; @SOUND_MAJOR
	.no_dead_strip	_snd_hwdep_open
.subsections_via_symbols
