	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ims_pcu_get_cdc_union_desc
_ims_pcu_get_cdc_union_desc:            ## @ims_pcu_get_cdc_union_desc
	.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	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	cmpq	$24, %rax
	jb	LBB0_12
## %bb.4:
	movq	_USB_DT_CS_INTERFACE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_USB_CDC_UNION_TYPE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	%rsi, %rbx
	cmpq	$23, %rax
	jbe	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	subq	%rsi, %rax
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rcx, 8(%rbx)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rdx, 16(%rbx)
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	(%rbx), %rdx
	cmpq	$23, %rdx
	ja	LBB0_14
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$24, %ecx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_13
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
LBB0_13:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing descriptor data\n"

L_.str.1:                               ## @.str.1
	.asciz	"Zero length descriptor\n"

L_.str.2:                               ## @.str.2
	.asciz	"Too large descriptor\n"

	.comm	_USB_DT_CS_INTERFACE,8,3        ## @USB_DT_CS_INTERFACE
	.comm	_USB_CDC_UNION_TYPE,8,3         ## @USB_CDC_UNION_TYPE
L_.str.3:                               ## @.str.3
	.asciz	"Found union header\n"

L_.str.4:                               ## @.str.4
	.asciz	"Union descriptor too short (%d vs %zd)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Missing CDC union descriptor\n"

	.no_dead_strip	_ims_pcu_get_cdc_union_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ims_pcu_get_cdc_union_desc
_ims_pcu_get_cdc_union_desc:            ; @ims_pcu_get_cdc_union_desc
	.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, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	cbz	x20, LBB0_10
; %bb.1:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.2:
	cmp	x8, #24
	b.lo	LBB0_11
; %bb.3:
Lloh0:
	adrp	x9, _USB_DT_CS_INTERFACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB_DT_CS_INTERFACE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _USB_CDC_UNION_TYPE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _USB_CDC_UNION_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, x11
	cmp	x8, #23
	b.ls	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x20]
	subs	x8, x8, x11
	b.lo	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x20, #8]
	cmp	x12, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x20, #16]
	cmp	x12, x10
	b.ne	LBB0_4
; %bb.8:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20]
	cmp	x8, #23
	b.hi	LBB0_15
; %bb.9:
	mov	w9, #24
	stp	x8, x9, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_10:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_11:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
	mov	x20, #0
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing descriptor data\n"

l_.str.1:                               ; @.str.1
	.asciz	"Zero length descriptor\n"

l_.str.2:                               ; @.str.2
	.asciz	"Too large descriptor\n"

	.comm	_USB_DT_CS_INTERFACE,8,3        ; @USB_DT_CS_INTERFACE
	.comm	_USB_CDC_UNION_TYPE,8,3         ; @USB_CDC_UNION_TYPE
l_.str.3:                               ; @.str.3
	.asciz	"Found union header\n"

l_.str.4:                               ; @.str.4
	.asciz	"Union descriptor too short (%d vs %zd)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Missing CDC union descriptor\n"

	.no_dead_strip	_ims_pcu_get_cdc_union_desc
.subsections_via_symbols
