	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dps1_insert_key
_dps1_insert_key:                       ## @dps1_insert_key
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	callq	_sysfs_dev2docg3
	movq	_DOC_LAYOUT_DPS_KEY_LENGTH@GOTPCREL(%rip), %r12
	cmpq	%rbx, (%r12)
	jne	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdi
	callq	_mutex_lock
	movl	8(%r13), %esi
	movq	%r13, %rdi
	callq	_doc_set_device_id
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_DOC_DPS1_KEY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15,%rbx), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_doc_writeb
	incq	%rbx
	cmpq	%rbx, (%r12)
	ja	LBB0_4
LBB0_5:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_doc_set_device_id
	movq	(%r13), %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOC_LAYOUT_DPS_KEY_LENGTH,8,3  ## @DOC_LAYOUT_DPS_KEY_LENGTH
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_DOC_DPS1_KEY,4,2               ## @DOC_DPS1_KEY
	.no_dead_strip	_dps1_insert_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dps1_insert_key
_dps1_insert_key:                       ; @dps1_insert_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x20, x2
	bl	_sysfs_dev2docg3
Lloh0:
	adrp	x22, _DOC_LAYOUT_DPS_KEY_LENGTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DOC_LAYOUT_DPS_KEY_LENGTH@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x0, [x0]
	bl	_mutex_lock
	ldr	w1, [x21, #8]
	mov	x0, x21
	bl	_doc_set_device_id
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x23, #0
Lloh2:
	adrp	x24, _DOC_DPS1_KEY@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DOC_DPS1_KEY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w1, [x20, x23]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_doc_writeb
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x8, x23
	b.hi	LBB0_3
LBB0_4:
	mov	x0, x21
	mov	w1, #0
	bl	_doc_set_device_id
	ldr	x0, [x21]
	bl	_mutex_unlock
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DOC_LAYOUT_DPS_KEY_LENGTH,8,3  ; @DOC_LAYOUT_DPS_KEY_LENGTH
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_DOC_DPS1_KEY,4,2               ; @DOC_DPS1_KEY
	.no_dead_strip	_dps1_insert_key
.subsections_via_symbols
