	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pattern_init
_pattern_init:                          ## @pattern_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	leaq	-20(%rbp), %rsi
	callq	_led_get_default_pattern
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movl	-20(%rbp), %ecx
	testb	$1, %cl
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_pattern_trig_store_patterns
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_5
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_5:
	movq	%r14, %rdi
	callq	_kfree
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expected pattern of tuples\n"

L_.str.1:                               ## @.str.1
	.asciz	"Pattern initialization failed with error %d\n"

	.no_dead_strip	_pattern_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pattern_init
_pattern_init:                          ; @pattern_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	str	wzr, [sp, #12]
	add	x1, sp, #12
	bl	_led_get_default_pattern
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w3, [sp, #12]
	tbnz	w3, #0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	mov	w4, #0
	bl	_pattern_trig_store_patterns
                                        ; kill: def $w0 killed $w0 def $x0
	tbz	w0, #31, LBB0_6
; %bb.3:
	ldr	w8, [x20]
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	bl	_dev_warn
LBB0_6:
	mov	x0, x19
	bl	_kfree
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expected pattern of tuples\n"

l_.str.1:                               ; @.str.1
	.asciz	"Pattern initialization failed with error %d\n"

	.no_dead_strip	_pattern_init
.subsections_via_symbols
