	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_read_secsi_onechip
_do_read_secsi_onechip:                 ## @do_read_secsi_onechip
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_FL_READY@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_3
## %bb.1:
	leaq	12(%r12), %r14
	movq	_wait@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_add_wait_queue
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	callq	_schedule
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_remove_wait_queue
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	jne	LBB0_2
LBB0_3:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	addl	16(%r12), %r15d
	movq	%rax, (%r12)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_otp_enter
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_map_copy_from
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_otp_exit
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_wake_up
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_FL_READY,8,3                   ## @FL_READY
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_do_read_secsi_onechip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_read_secsi_onechip
_do_read_secsi_onechip:                 ; @do_read_secsi_onechip
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x20, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_DECLARE_WAITQUEUE
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh6:
	adrp	x27, _FL_READY@GOTPAGE
Lloh7:
	ldr	x27, [x27, _FL_READY@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	add	x25, x19, #12
Lloh8:
	adrp	x28, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh10:
	adrp	x26, _wait@GOTPAGE
Lloh11:
	ldr	x26, [x26, _wait@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	bl	_set_current_state
	mov	x0, x25
	mov	x1, x26
	bl	_add_wait_queue
	mov	x0, x21
	bl	_mutex_unlock
	bl	_schedule
	mov	x0, x25
	mov	x1, x26
	bl	_remove_wait_queue
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_3:
	ldr	w9, [x19, #16]
	add	w24, w9, w24
	str	x8, [x19]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x24
	mov	x3, x20
	bl	_otp_enter
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x20
	bl	_map_copy_from
	mov	x0, x22
	mov	x1, x19
	mov	x2, x24
	mov	x3, x20
	bl	_otp_exit
	add	x0, x19, #12
	bl	_wake_up
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_FL_READY,8,3                   ; @FL_READY
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_do_read_secsi_onechip
.subsections_via_symbols
