	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_check_valid_format
_hw_check_valid_format:                 ## @hw_check_valid_format
	.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	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hw_param_interval
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hw_param_interval
	movq	%rax, %r14
	movq	_SNDRV_PCM_HW_PARAM_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hw_param_mask
	movq	%rax, %r15
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hw_param_interval
	movq	%rax, %r12
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_snd_mask_none
	movslq	(%r13), %rax
	movq	-64(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_snd_mask_intersect
	movq	%rbx, %rdi
	callq	_snd_mask_empty
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	36(%r13), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_hwc_debug
	jmp	LBB0_19
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r13), %rsi
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	cmpq	%rdx, %rsi
	jl	LBB0_4
## %bb.3:
	cmpq	%rcx, %rsi
	jg	LBB0_4
## %bb.5:
	movq	16(%r13), %rsi
	movq	8(%rax), %rdx
	cmpq	%rdx, %rsi
	jg	LBB0_8
## %bb.6:
	jne	LBB0_9
## %bb.7:
	cmpq	$0, 16(%rax)
	je	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_18
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_hwc_debug
	jmp	LBB0_19
LBB0_9:
	movq	24(%r13), %rsi
	movq	(%rax), %rdx
	cmpq	%rdx, %rsi
	jl	LBB0_12
## %bb.10:
	jne	LBB0_13
## %bb.11:
	cmpq	$0, 24(%rax)
	je	LBB0_13
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
LBB0_18:
	xorl	%r14d, %r14d
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_hwc_debug
LBB0_19:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%r12), %edi
	callq	_snd_usb_get_speed
	movq	_USB_SPEED_FULL@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.14:
	movb	32(%r13), %cl
	movl	$125, %esi
	shll	%cl, %esi
	movq	8(%rbx), %rdx
	cmpq	%rsi, %rdx
	jl	LBB0_17
## %bb.15:
	jne	LBB0_19
## %bb.16:
	cmpq	$0, 16(%rbx)
	je	LBB0_19
LBB0_17:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_SNDRV_PCM_HW_PARAM_FORMAT,4,2  ## @SNDRV_PCM_HW_PARAM_FORMAT
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_TIME,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"   > check: no supported format %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"   > check: no valid channels %d (%d/%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"   > check: rate_min %d > max %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"   > check: rate_max %d < min %d\n"

	.comm	_USB_SPEED_FULL,8,3             ## @USB_SPEED_FULL
L_.str.4:                               ## @.str.4
	.asciz	"   > check: ptime %u > max %u\n"

	.no_dead_strip	_hw_check_valid_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_check_valid_format
_hw_check_valid_format:                 ; @hw_check_valid_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_hw_param_interval
	mov	x22, x0
Lloh3:
	adrp	x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_hw_param_interval
	mov	x23, x0
Lloh6:
	adrp	x8, _SNDRV_PCM_HW_PARAM_FORMAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_FORMAT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_hw_param_mask
	mov	x24, x0
Lloh9:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_TIME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_TIME@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_hw_param_interval
	mov	x21, x0
	add	x0, sp, #24
	bl	_snd_mask_none
	ldrsw	x8, [x19]
	ldr	x9, [sp, #24]
	str	x8, [x9]
	add	x0, sp, #24
	mov	x1, x24
	bl	_snd_mask_intersect
	add	x0, sp, #24
	bl	_snd_mask_empty
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19, #36]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_2:
	ldr	x1, [x19, #8]
	ldp	x8, x9, [x23]
	cmp	x1, x8
	ccmp	x1, x9, #0, ge
	b.le	LBB0_4
; %bb.3:
	stp	x8, x9, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_4:
	ldr	x1, [x19, #16]
	ldr	x8, [x22, #8]
	cmp	x1, x8
	b.gt	LBB0_7
; %bb.5:
	b.ne	LBB0_8
; %bb.6:
	ldr	x9, [x22, #16]
	cbz	x9, LBB0_8
LBB0_7:
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_8:
	ldr	x1, [x19, #24]
	ldr	x8, [x22]
	cmp	x1, x8
	b.lt	LBB0_11
; %bb.9:
	b.ne	LBB0_15
; %bb.10:
	ldr	x9, [x22, #24]
	cbz	x9, LBB0_15
LBB0_11:
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_13:
	bl	_hwc_debug
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	w0, [x20]
	bl	_snd_usb_get_speed
Lloh20:
	adrp	x8, _USB_SPEED_FULL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _USB_SPEED_FULL@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
LBB0_16:
	mov	w0, #1
	b	LBB0_14
LBB0_17:
	ldr	w8, [x19, #32]
	mov	w9, #125
	lsl	w1, w9, w8
	ldr	x8, [x21, #8]
	cmp	x8, x1
	b.lt	LBB0_20
; %bb.18:
	b.ne	LBB0_16
; %bb.19:
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_16
LBB0_20:
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_SNDRV_PCM_HW_PARAM_FORMAT,4,2  ; @SNDRV_PCM_HW_PARAM_FORMAT
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_TIME,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"   > check: no supported format %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"   > check: no valid channels %d (%d/%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"   > check: rate_min %d > max %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"   > check: rate_max %d < min %d\n"

	.comm	_USB_SPEED_FULL,8,3             ; @USB_SPEED_FULL
l_.str.4:                               ; @.str.4
	.asciz	"   > check: ptime %u > max %u\n"

	.no_dead_strip	_hw_check_valid_format
.subsections_via_symbols
