	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chmod_sysfs_attrs
_chmod_sysfs_attrs:                     ## @chmod_sysfs_attrs
	.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	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CP2112_LOCK_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-56(%rbp), %rdx
	movl	$8, %ecx
	callq	_cp2112_hid_get
	cmpl	$8, %eax
	jne	LBB0_1
## %bb.2:
	movq	_cp2112_attr_group@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.3:
	movl	-52(%rbp), %edx
	addq	$8, %rbx
	movq	_S_IWUSR@GOTPCREL(%rip), %r12
	movq	_S_IRUGO@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %edx
	sarl	%edx
	movl	%edx, -52(%rbp)
	movq	(%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	andl	$1, %edx
	negl	%edx
	andl	(%r12), %edx
	orl	(%r13), %edx
	movq	%r15, %rdi
	callq	_sysfs_chmod_file
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-8(%rbx), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hid_err
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_hid_err
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CP2112_LOCK_BYTE,4,2           ## @CP2112_LOCK_BYTE
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading lock byte: %d\n"

	.comm	_cp2112_attr_group,8,3          ## @cp2112_attr_group
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
L_.str.1:                               ## @.str.1
	.asciz	"error chmoding sysfs file %s\n"

	.no_dead_strip	_chmod_sysfs_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chmod_sysfs_attrs
_chmod_sysfs_attrs:                     ; @chmod_sysfs_attrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _CP2112_LOCK_BYTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CP2112_LOCK_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x2, sp
	mov	w3, #8
	bl	_cp2112_hid_get
	cmp	w0, #8
	b.ne	LBB0_6
; %bb.1:
Lloh9:
	adrp	x8, _cp2112_attr_group@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cp2112_attr_group@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
	ldr	x1, [x9]
	cbz	x1, LBB0_7
; %bb.2:
	ldr	w8, [sp, #4]
	add	x21, x9, #8
Lloh12:
	adrp	x22, _S_IWUSR@GOTPAGE
Lloh13:
	ldr	x22, [x22, _S_IWUSR@GOTPAGEOFF]
Lloh14:
	adrp	x20, l_.str.1@PAGE
Lloh15:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh16:
	adrp	x23, _S_IRUGO@GOTPAGE
Lloh17:
	ldr	x23, [x23, _S_IRUGO@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #4]
	asr	w8, w8, #1
	str	w8, [sp, #4]
	ldr	x1, [x21], #8
	cbz	x1, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sbfx	w8, w8, #0, #1
	ldr	w9, [x22]
	ldr	w10, [x23]
	and	w8, w8, w9
	orr	w2, w8, w10
	mov	x0, x19
	bl	_sysfs_chmod_file
	tbz	w0, #31, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x21, #-8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_hid_err
	b	LBB0_3
LBB0_6:
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hid_err
LBB0_7:
	ldr	x8, [sp, #8]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CP2112_LOCK_BYTE,4,2           ; @CP2112_LOCK_BYTE
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading lock byte: %d\n"

	.comm	_cp2112_attr_group,8,3          ; @cp2112_attr_group
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
l_.str.1:                               ; @.str.1
	.asciz	"error chmoding sysfs file %s\n"

	.no_dead_strip	_chmod_sysfs_attrs
.subsections_via_symbols
