	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_stream_hwdep_ioctl
_usb_stream_hwdep_ioctl:                ## @usb_stream_hwdep_ioctl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SNDRV_USB_STREAM_IOCTL_SET_PARAMS@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	%rcx, %rdi
	movl	$24, %esi
	callq	_memdup_user
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.29:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_3:
	movq	(%r13), %rax
	movq	_USB_STREAM_INTERFACE_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:
	movq	40(%r14), %rax
	movq	(%rax), %rcx
	movq	_USB_SPEED_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	8(%r13), %eax
	cmpl	$44100, %eax                    ## imm = 0xAC44
	je	LBB0_11
## %bb.7:
	cmpl	$48000, %eax                    ## imm = 0xBB80
	jne	LBB0_8
LBB0_11:
	cmpl	$6, 12(%r13)
	jne	LBB0_13
## %bb.12:
	movl	16(%r13), %esi
	cmpl	$12289, %esi                    ## imm = 0x3001
	jge	LBB0_13
## %bb.14:
	cmpq	%rdx, %rcx
	setne	%cl
	cmpl	$48000, %eax                    ## imm = 0xBB80
	movl	$52, %edx
	movl	$104, %edi
	cmovel	%edx, %edi
	cmpl	$44100, %eax                    ## imm = 0xAC44
	movl	$48, %eax
	cmovnel	%edi, %eax
	shll	%cl, %eax
	cmpl	%eax, %esi
	jb	LBB0_13
## %bb.15:
	movl	(%rbx), %edi
	movq	_SNDRV_CTL_POWER_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_snd_power_wait
	leaq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	8(%r14), %rbx
	movq	32(%r14), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:
	cmpq	%r15, %rax
	je	LBB0_17
## %bb.19:
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.20:
	leaq	8(%rbx), %rsi
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_25
## %bb.21:
	movq	%r15, 24(%r14)
	jmp	LBB0_22
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	cmpq	%rdx, %rcx
	jne	LBB0_13
## %bb.9:
	cmpl	$96000, %eax                    ## imm = 0x17700
	je	LBB0_11
## %bb.10:
	cmpl	$88200, %eax                    ## imm = 0x15888
	je	LBB0_11
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_27:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_wake_up_all
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r15, 32(%r14)
LBB0_17:
	testq	%rbx, %rbx
	je	LBB0_24
LBB0_22:
	leaq	8(%rbx), %rsi
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	(%rbx), %rax
	movq	_usb_stream_xrun@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_26
LBB0_24:
	movq	%r14, %rdi
	callq	_us122l_stop
	movl	8(%r13), %esi
	movl	16(%r13), %edx
	movq	%r14, %rdi
	callq	_us122l_start
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_26
LBB0_25:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_26:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_USB_STREAM_IOCTL_SET_PARAMS,4,2 ## @SNDRV_USB_STREAM_IOCTL_SET_PARAMS
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_USB_STREAM_INTERFACE_VERSION,8,3 ## @USB_STREAM_INTERFACE_VERSION
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_USB_SPEED_HIGH,8,3             ## @USB_SPEED_HIGH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_CTL_POWER_D0,4,2         ## @SNDRV_CTL_POWER_D0
	.comm	_EIO,4,2                        ## @EIO
	.comm	_usb_stream_xrun,8,3            ## @usb_stream_xrun
	.no_dead_strip	_usb_stream_hwdep_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_stream_hwdep_ioctl
_usb_stream_hwdep_ioctl:                ; @usb_stream_hwdep_ioctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _SNDRV_USB_STREAM_IOCTL_SET_PARAMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_USB_STREAM_IOCTL_SET_PARAMS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	mov	x0, x3
	mov	w1, #24
	bl	_memdup_user
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_21
LBB0_4:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _USB_STREAM_INTERFACE_VERSION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_STREAM_INTERFACE_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.5:
	ldr	x8, [x19, #40]
	ldr	x9, [x8]
Lloh9:
	adrp	x8, _USB_SPEED_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_SPEED_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x8]
	ldr	w8, [x20, #8]
	mov	w11, #44100
	cmp	w8, w11
	mov	w11, #48000
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_15
LBB0_6:
	ldr	w11, [x20, #12]
	cmp	w11, #6
	b.ne	LBB0_18
; %bb.7:
	ldr	w11, [x20, #16]
	cmp	w11, #3, lsl #12                ; =12288
	b.gt	LBB0_18
; %bb.8:
	cmp	x9, x10
	cset	w9, ne
	mov	w10, #48000
	mov	w12, #104
	mov	w13, #52
	cmp	w8, w10
	csel	w10, w13, w12, eq
	mov	w12, #44100
	mov	w13, #48
	cmp	w8, w12
	csel	w8, w13, w10, eq
	lsl	w8, w8, w9
	cmp	w11, w8
	b.lo	LBB0_18
; %bb.9:
	ldr	w0, [x22]
Lloh12:
	adrp	x8, _SNDRV_CTL_POWER_D0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_CTL_POWER_D0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_snd_power_wait
	add	x22, x19, #16
	mov	x0, x22
	bl	_mutex_lock
	ldr	x23, [x19, #8]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_22
; %bb.10:
	cmp	x8, x21
	b.eq	LBB0_23
; %bb.11:
	cbz	x23, LBB0_28
; %bb.12:
	add	x1, x23, #8
	mov	x0, x20
	mov	w2, #24
	bl	_memcmp
	cbnz	x0, LBB0_28
; %bb.13:
	str	x21, [x19, #24]
	b	LBB0_24
LBB0_14:
Lloh15:
	adrp	x8, _ENXIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
	cmp	x9, x10
	b.ne	LBB0_18
; %bb.16:
	mov	w11, #30464
	movk	w11, #1, lsl #16
	cmp	w8, w11
	b.eq	LBB0_6
; %bb.17:
	mov	w11, #22664
	movk	w11, #1, lsl #16
	cmp	w8, w11
	b.eq	LBB0_6
LBB0_18:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_20:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_wake_up_all
LBB0_21:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_22:
	str	x21, [x19, #32]
LBB0_23:
	cbz	x23, LBB0_26
LBB0_24:
	add	x1, x23, #8
	mov	x0, x20
	mov	w2, #24
	bl	_memcmp
	cbnz	x0, LBB0_26
; %bb.25:
	ldr	x8, [x23]
Lloh19:
	adrp	x9, _usb_stream_xrun@GOTPAGE
Lloh20:
	ldr	x9, [x9, _usb_stream_xrun@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
LBB0_26:
	mov	x0, x19
	bl	_us122l_stop
	ldr	w1, [x20, #8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_us122l_start
	cbz	w0, LBB0_28
; %bb.27:
	mov	w21, #1
	b	LBB0_29
LBB0_28:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_29:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_20
LBB0_30:
	mov	w21, #0
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_USB_STREAM_IOCTL_SET_PARAMS,4,2 ; @SNDRV_USB_STREAM_IOCTL_SET_PARAMS
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_USB_STREAM_INTERFACE_VERSION,8,3 ; @USB_STREAM_INTERFACE_VERSION
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_USB_SPEED_HIGH,8,3             ; @USB_SPEED_HIGH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_CTL_POWER_D0,4,2         ; @SNDRV_CTL_POWER_D0
	.comm	_EIO,4,2                        ; @EIO
	.comm	_usb_stream_xrun,8,3            ; @usb_stream_xrun
	.no_dead_strip	_usb_stream_hwdep_ioctl
.subsections_via_symbols
