	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_trig_activate
_gpio_trig_activate:                    ## @gpio_trig_activate
	.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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %edi
	movq	_dev_attr_gpio@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	(%r14), %edi
	movq	_dev_attr_inverted@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	movq	_dev_attr_desired_brightness@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	(%r14), %edi
	movq	_dev_attr_inverted@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_5:
	movl	(%r14), %edi
	movq	_dev_attr_gpio@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, 8(%rbx)
	movq	%rbx, 8(%r14)
	movq	_gpio_trig_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_INIT_WORK                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.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
	.comm	_gpio_trig_work,4,2             ## @gpio_trig_work
	.no_dead_strip	_gpio_trig_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_trig_activate
_gpio_trig_activate:                    ; @gpio_trig_activate
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x1, _dev_attr_gpio@GOTPAGE
Lloh4:
	ldr	x1, [x1, _dev_attr_gpio@GOTPAGEOFF]
	bl	_device_create_file
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x20]
Lloh5:
	adrp	x1, _dev_attr_inverted@GOTPAGE
Lloh6:
	ldr	x1, [x1, _dev_attr_inverted@GOTPAGEOFF]
	bl	_device_create_file
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, _dev_attr_desired_brightness@GOTPAGE
Lloh8:
	ldr	x1, [x1, _dev_attr_desired_brightness@GOTPAGEOFF]
	bl	_device_create_file
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, _dev_attr_inverted@GOTPAGE
Lloh10:
	ldr	x1, [x1, _dev_attr_inverted@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_5:
	ldr	w0, [x20]
Lloh11:
	adrp	x1, _dev_attr_gpio@GOTPAGE
Lloh12:
	ldr	x1, [x1, _dev_attr_gpio@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	x20, [x19, #8]
	str	x19, [x20, #8]
Lloh13:
	adrp	x8, _gpio_trig_work@GOTPAGE
Lloh14:
	ldr	x8, [x8, _gpio_trig_work@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_INIT_WORK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.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
	.comm	_gpio_trig_work,4,2             ; @gpio_trig_work
	.no_dead_strip	_gpio_trig_activate
.subsections_via_symbols
