	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lg4ff_deinit                   ## -- Begin function lg4ff_deinit
	.p2align	4, 0x90
_lg4ff_deinit:                          ## @lg4ff_deinit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_hid_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.3:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	_dev_attr_real_id@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_remove_file
	movq	_dev_attr_alternate_modes@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_remove_file
LBB0_5:
	movq	_dev_attr_combine_pedals@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_remove_file
	movq	_dev_attr_range@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_remove_file
	movq	$0, (%r14)
	movq	%r15, %rdi
	callq	_kfree
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_dbg_hid
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hid_err
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error while deinitializing device, no private driver data.\n"

	.comm	_dev_attr_real_id,4,2           ## @dev_attr_real_id
	.comm	_dev_attr_alternate_modes,4,2   ## @dev_attr_alternate_modes
	.comm	_dev_attr_combine_pedals,4,2    ## @dev_attr_combine_pedals
	.comm	_dev_attr_range,4,2             ## @dev_attr_range
L_.str.1:                               ## @.str.1
	.asciz	"Device successfully unregistered\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lg4ff_deinit                   ; -- Begin function lg4ff_deinit
	.p2align	2
_lg4ff_deinit:                          ; @lg4ff_deinit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_hid_get_drvdata
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_5
; %bb.2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, _dev_attr_real_id@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_real_id@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
Lloh2:
	adrp	x1, _dev_attr_alternate_modes@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dev_attr_alternate_modes@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
LBB0_4:
Lloh4:
	adrp	x1, _dev_attr_combine_pedals@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dev_attr_combine_pedals@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
Lloh6:
	adrp	x1, _dev_attr_range@GOTPAGE
Lloh7:
	ldr	x1, [x1, _dev_attr_range@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
	str	xzr, [x20]
	mov	x0, x21
	bl	_kfree
LBB0_5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg_hid
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hid_err
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error while deinitializing device, no private driver data.\n"

	.comm	_dev_attr_real_id,4,2           ; @dev_attr_real_id
	.comm	_dev_attr_alternate_modes,4,2   ; @dev_attr_alternate_modes
	.comm	_dev_attr_combine_pedals,4,2    ; @dev_attr_combine_pedals
	.comm	_dev_attr_range,4,2             ; @dev_attr_range
l_.str.1:                               ; @.str.1
	.asciz	"Device successfully unregistered\n"

.subsections_via_symbols
