	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ims_pcu_parse_cdc_data
_ims_pcu_parse_cdc_data:                ## @ims_pcu_parse_cdc_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_ims_pcu_get_cdc_union_desc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movl	40(%r14), %edi
	movl	4(%rax), %esi
	callq	_usb_ifnum_to_if
	movq	%rax, 64(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	(%rax), %rax
	cmpl	$0, 8(%rax)
	jle	LBB0_12
## %bb.3:
	movq	(%rax), %rdi
	movq	%rdi, 48(%r14)
	callq	_usb_endpoint_maxp
	movq	%rax, 56(%r14)
	movl	40(%r14), %edi
	movl	(%rbx), %esi
	callq	_usb_ifnum_to_if
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	(%rax), %rbx
	movl	8(%rbx), %edx
	cmpl	$2, %edx
	jne	LBB0_13
## %bb.5:
	movq	(%rbx), %rdi
	movq	%rdi, 24(%r14)
	callq	_usb_endpoint_is_bulk_out
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movq	24(%r14), %rdi
	callq	_usb_endpoint_maxp
	movl	%eax, (%r14)
	cmpl	$7, %eax
	jg	LBB0_15
## %bb.7:
	movl	8(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_18
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_13:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_14:
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_21
LBB0_15:
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movq	%rdi, 16(%r14)
	callq	_usb_endpoint_is_bulk_in
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	movq	16(%r14), %rdi
	callq	_usb_endpoint_maxp
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
	cmpl	$7, %eax
	jg	LBB0_11
## %bb.17:
	movl	8(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_18:
	xorl	%ebx, %ebx
	movl	%eax, %edx
LBB0_19:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_20:
	movl	8(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_21:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incorrect number of endpoints on data interface (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"First endpoint on data interface is not BULK OUT\n"

L_.str.2:                               ## @.str.2
	.asciz	"Max OUT packet size is too small (%zd)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Second endpoint on data interface is not BULK IN\n"

L_.str.4:                               ## @.str.4
	.asciz	"Max IN packet size is too small (%zd)\n"

	.no_dead_strip	_ims_pcu_parse_cdc_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ims_pcu_parse_cdc_data
_ims_pcu_parse_cdc_data:                ; @ims_pcu_parse_cdc_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	bl	_ims_pcu_get_cdc_union_desc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #40]
	ldr	w1, [x20, #4]
	bl	_usb_ifnum_to_if
	str	x0, [x19, #64]
	cbz	x0, LBB0_17
; %bb.2:
	ldr	x8, [x0]
	ldr	w9, [x8, #8]
	cmp	w9, #0
	b.le	LBB0_8
; %bb.3:
	ldr	x0, [x8]
	str	x0, [x19, #48]
	bl	_usb_endpoint_maxp
	str	x0, [x19, #56]
	ldr	w0, [x19, #40]
	ldr	w1, [x20]
	bl	_usb_ifnum_to_if
	str	x0, [x19, #32]
	cbz	x0, LBB0_17
; %bb.4:
	ldr	x20, [x0]
	ldr	w8, [x20, #8]
	cmp	w8, #2
	b.ne	LBB0_9
; %bb.5:
	ldr	x0, [x20]
	str	x0, [x19, #24]
	bl	_usb_endpoint_is_bulk_out
	cbz	w0, LBB0_10
; %bb.6:
	ldr	x0, [x19, #24]
	bl	_usb_endpoint_maxp
	str	w0, [x19]
	cmp	w0, #7
	b.gt	LBB0_11
; %bb.7:
	ldr	w8, [x19, #8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_8:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_18
LBB0_9:
	ldr	w0, [x19, #8]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_10:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_11:
	ldr	x8, [x20]
	add	x0, x8, #4
	str	x0, [x19, #16]
	bl	_usb_endpoint_is_bulk_in
	cbz	w0, LBB0_15
; %bb.12:
	ldr	x0, [x19, #16]
	bl	_usb_endpoint_maxp
	str	w0, [x19, #4]
	cmp	w0, #7
	b.gt	LBB0_20
; %bb.13:
	ldr	w8, [x19, #8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_14:
	mov	x0, x8
	b	LBB0_16
LBB0_15:
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	bl	_dev_err
LBB0_17:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_20:
	mov	w0, #0
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incorrect number of endpoints on data interface (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"First endpoint on data interface is not BULK OUT\n"

l_.str.2:                               ; @.str.2
	.asciz	"Max OUT packet size is too small (%zd)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Second endpoint on data interface is not BULK IN\n"

l_.str.4:                               ; @.str.4
	.asciz	"Max IN packet size is too small (%zd)\n"

	.no_dead_strip	_ims_pcu_parse_cdc_data
.subsections_via_symbols
