	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uclogic_params_init_with_opt_desc
_uclogic_params_init_with_opt_desc:     ## @uclogic_params_init_with_opt_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movl	%r8d, %r14d
	movq	%rcx, %r12
	movl	%edx, %ecx
	movq	%rdi, %r15
	testq	%r12, %r12
	jne	LBB0_5
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movl	(%rsi), %edx
	cmpl	%ecx, %edx
	jne	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rax
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_hid_dbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_kmemdup
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rax
	xorl	%r12d, %r12d
	movq	%rsi, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_hid_dbg
	xorl	%r14d, %r14d
LBB0_9:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r12, 8(%r15)
	movl	%r14d, (%r15)
LBB0_10:
	xorl	%edi, %edi
	callq	_kfree
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device report descriptor matches the expected size, replacing\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"device report descriptor doesn't match the expected size (%u != %u), preserving\n"

	.no_dead_strip	_uclogic_params_init_with_opt_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uclogic_params_init_with_opt_desc
_uclogic_params_init_with_opt_desc:     ; @uclogic_params_init_with_opt_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x1, LBB0_4
; %bb.2:
	mov	x20, x4
	mov	x21, x3
	mov	x19, x0
	cbnz	x3, LBB0_6
; %bb.3:
	cbz	w20, LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_6:
	ldr	w8, [x1]
	cmp	w8, w2
	b.ne	LBB0_9
; %bb.7:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	bl	_hid_dbg
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_kmemdup
	mov	x22, x0
	cbnz	x0, LBB0_10
; %bb.8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	stp	x8, x2, [sp]
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	bl	_hid_dbg
	mov	x22, #0
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w21, #0
	str	x22, [x19, #8]
	str	w20, [x19]
LBB0_11:
	mov	x0, #0
	bl	_kfree
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device report descriptor matches the expected size, replacing\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"device report descriptor doesn't match the expected size (%u != %u), preserving\n"

	.no_dead_strip	_uclogic_params_init_with_opt_desc
.subsections_via_symbols
