	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pattern_trig_activate
_pattern_trig_activate:                 ## @pattern_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, 16(%r14)
	setne	%al
	cmpq	$0, 8(%r14)
	setne	%cl
	cmpb	%cl, %al
	je	LBB0_4
## %bb.3:
	leaq	8(%r14), %r15
	movl	24(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
LBB0_4:
	movabsq	$-4294967295, %rax              ## imm = 0xFFFFFFFF00000001
	movq	%rax, (%rbx)
	leaq	24(%rbx), %rdi
	callq	_mutex_init
	movq	%r14, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_led_set_trigger_data
	addq	$8, %rbx
	movq	_pattern_trig_timer_function@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movl	$1, (%r14)
	movq	_LED_INIT_DEFAULT_TRIGGER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 4(%r14)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_pattern_init
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 4(%r14)
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hardware pattern ops validation failed\n"

	.comm	_pattern_trig_timer_function,4,2 ## @pattern_trig_timer_function
	.comm	_LED_INIT_DEFAULT_TRIGGER,4,2   ## @LED_INIT_DEFAULT_TRIGGER
	.no_dead_strip	_pattern_trig_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pattern_trig_activate
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pattern_trig_activate:                 ; @pattern_trig_activate
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x21, x19
	ldp	x8, x9, [x21, #8]!
	cmp	x9, #0
	cset	w9, ne
	cmp	x8, #0
	cset	w8, ne
	cmp	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	stp	xzr, xzr, [x21]
LBB0_3:
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	add	x0, x20, #24
	bl	_mutex_init
	str	x19, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_led_set_trigger_data
	add	x0, x20, #8
Lloh7:
	adrp	x8, _pattern_trig_timer_function@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pattern_trig_timer_function@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x19, #4]
Lloh10:
	adrp	x20, _LED_INIT_DEFAULT_TRIGGER@GOTPAGE
Lloh11:
	ldr	x20, [x20, _LED_INIT_DEFAULT_TRIGGER@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_pattern_init
	mov	w0, #0
	ldr	w8, [x20]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hardware pattern ops validation failed\n"

	.comm	_pattern_trig_timer_function,4,2 ; @pattern_trig_timer_function
	.comm	_LED_INIT_DEFAULT_TRIGGER,4,2   ; @LED_INIT_DEFAULT_TRIGGER
	.no_dead_strip	_pattern_trig_activate
.subsections_via_symbols
