	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_init_devfs             ## -- Begin function picolcd_init_devfs
	.p2align	4, 0x90
_picolcd_init_devfs:                    ## @picolcd_init_devfs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	addq	$32, %rdi
	callq	_mutex_init
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movq	_picolcd_debug_reset_fops@GOTPCREL(%rip), %r8
	movl	$384, %esi                      ## imm = 0x180
	movq	%rbx, %rcx
	callq	_debugfs_create_file
	movq	%rax, 24(%rbx)
LBB0_2:
	movq	%r13, %rax
	orq	%r15, %rax
	je	LBB0_8
## %bb.3:
	xorl	%esi, %esi
	movl	$0, %eax
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:
	movq	_S_IRUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_7:
	orl	%eax, %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	_picolcd_debug_eeprom_fops@GOTPCREL(%rip), %r8
	movq	%rbx, %rcx
	callq	_debugfs_create_file
	movq	%rax, 16(%rbx)
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	cmpl	$1, (%rax)
	jne	LBB0_15
## %bb.10:
	movq	8(%rax), %rax
	movq	(%rax), %rax
	cmpl	$8, (%rax)
	jne	LBB0_15
## %bb.11:
	movl	4(%rax), %eax
	decl	%eax
	movl	%eax, (%rbx)
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_16
## %bb.12:
	xorl	%esi, %esi
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_14:
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	_picolcd_debug_flash_fops@GOTPCREL(%rip), %r8
	movq	%rbx, %rcx
	callq	_debugfs_create_file
	movq	%rax, 8(%rbx)
	jmp	LBB0_18
LBB0_15:
	movl	$-1, (%rbx)
	jmp	LBB0_16
LBB0_17:
	movl	$-1, (%rbx)
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_18
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hid_warn                       ## TAILCALL
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_picolcd_debug_reset_fops,4,2   ## @picolcd_debug_reset_fops
L_.str.1:                               ## @.str.1
	.asciz	"eeprom"

	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_picolcd_debug_eeprom_fops,4,2  ## @picolcd_debug_eeprom_fops
L_.str.2:                               ## @.str.2
	.asciz	"flash"

	.comm	_picolcd_debug_flash_fops,4,2   ## @picolcd_debug_flash_fops
L_.str.3:                               ## @.str.3
	.asciz	"Unexpected FLASH access reports, please submit rdesc for review\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_init_devfs             ; -- Begin function picolcd_init_devfs
	.p2align	2
_picolcd_init_devfs:                    ; @picolcd_init_devfs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x20, [x0, #40]
	add	x0, x0, #32
	bl	_mutex_init
	cbz	x25, LBB0_2
; %bb.1:
	ldr	w2, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x4, _picolcd_debug_reset_fops@GOTPAGE
Lloh3:
	ldr	x4, [x4, _picolcd_debug_reset_fops@GOTPAGEOFF]
	mov	w1, #384
	mov	x3, x19
	bl	_debugfs_create_file
	str	x0, [x19, #24]
LBB0_2:
	orr	x8, x23, x24
	cbz	x8, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _S_IWUSR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_IWUSR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	x24, #0
Lloh7:
	adrp	x9, _S_IRUSR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _S_IRUSR@GOTPAGEOFF]
	csel	w8, w8, wzr, ne
Lloh9:
	ldr	w9, [x9]
	cmp	x23, #0
	csel	w9, w9, wzr, ne
	orr	w1, w9, w8
	ldr	w2, [x20]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh12:
	adrp	x4, _picolcd_debug_eeprom_fops@GOTPAGE
Lloh13:
	ldr	x4, [x4, _picolcd_debug_eeprom_fops@GOTPAGEOFF]
	mov	x3, x19
	bl	_debugfs_create_file
	str	x0, [x19, #16]
LBB0_4:
	cbz	x22, LBB0_10
; %bb.5:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, #8
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x8, #4]
	sub	w8, w8, #1
	str	w8, [x19]
	and	w8, w8, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_11
; %bb.8:
Lloh14:
	adrp	x8, _S_IWUSR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S_IWUSR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	x21, #0
	csel	w8, wzr, w8, eq
Lloh17:
	adrp	x9, _S_IRUSR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _S_IRUSR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [x20]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh22:
	adrp	x4, _picolcd_debug_flash_fops@GOTPAGE
Lloh23:
	ldr	x4, [x4, _picolcd_debug_flash_fops@GOTPAGEOFF]
	mov	x3, x19
	bl	_debugfs_create_file
	str	x0, [x19, #8]
	b	LBB0_12
LBB0_9:
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_11
LBB0_10:
	mov	w8, #-1
	str	w8, [x19]
	cbz	x21, LBB0_12
LBB0_11:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hid_warn
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_picolcd_debug_reset_fops,4,2   ; @picolcd_debug_reset_fops
l_.str.1:                               ; @.str.1
	.asciz	"eeprom"

	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_picolcd_debug_eeprom_fops,4,2  ; @picolcd_debug_eeprom_fops
l_.str.2:                               ; @.str.2
	.asciz	"flash"

	.comm	_picolcd_debug_flash_fops,4,2   ; @picolcd_debug_flash_fops
l_.str.3:                               ; @.str.3
	.asciz	"Unexpected FLASH access reports, please submit rdesc for review\n"

.subsections_via_symbols
