	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_trig_deactivate
_gpio_trig_deactivate:                  ## @gpio_trig_deactivate
	.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	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_dev_attr_gpio@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	(%rbx), %edi
	movq	_dev_attr_inverted@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	(%rbx), %edi
	movq	_dev_attr_desired_brightness@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	leaq	8(%r14), %rdi
	callq	_flush_work
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_gpio_to_irq
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_gpio,4,2              ## @dev_attr_gpio
	.comm	_dev_attr_inverted,4,2          ## @dev_attr_inverted
	.comm	_dev_attr_desired_brightness,4,2 ## @dev_attr_desired_brightness
	.no_dead_strip	_gpio_trig_deactivate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_trig_deactivate
_gpio_trig_deactivate:                  ; @gpio_trig_deactivate
	.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
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, _dev_attr_gpio@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_gpio@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x20]
Lloh2:
	adrp	x1, _dev_attr_inverted@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dev_attr_inverted@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x20]
Lloh4:
	adrp	x1, _dev_attr_desired_brightness@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dev_attr_desired_brightness@GOTPAGEOFF]
	bl	_device_remove_file
	add	x0, x19, #8
	bl	_flush_work
	ldr	x0, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_gpio_to_irq
	mov	x1, x20
	bl	_free_irq
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_gpio,4,2              ; @dev_attr_gpio
	.comm	_dev_attr_inverted,4,2          ; @dev_attr_inverted
	.comm	_dev_attr_desired_brightness,4,2 ; @dev_attr_desired_brightness
	.no_dead_strip	_gpio_trig_deactivate
.subsections_via_symbols
