	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function creative_sb0540_probe
_creative_sb0540_probe:                 ## @creative_sb0540_probe
	.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, %rbx
	addq	$4, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, (%rax)
	movq	_HID_QUIRK_HIDINPUT_FORCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_hid_set_drvdata
	movq	%rbx, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_4:
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%rbx, %rdi
	callq	_hid_err
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HID_QUIRK_HIDINPUT_FORCE,4,2   ## @HID_QUIRK_HIDINPUT_FORCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"hw start failed\n"

	.no_dead_strip	_creative_sb0540_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function creative_sb0540_probe
_creative_sb0540_probe:                 ; @creative_sb0540_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
	str	x19, [x0]
Lloh3:
	adrp	x8, _HID_QUIRK_HIDINPUT_FORCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_QUIRK_HIDINPUT_FORCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_hid_set_drvdata
	mov	x0, x19
	bl	_hid_parse
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hid_hw_start
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_hid_err
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HID_QUIRK_HIDINPUT_FORCE,4,2   ; @HID_QUIRK_HIDINPUT_FORCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"hw start failed\n"

	.no_dead_strip	_creative_sb0540_probe
.subsections_via_symbols
