	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x_sleep2
_x_sleep2:                              ## @x_sleep2
	.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
	movl	$0, -44(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	_x_sleep2_seq1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	(%r14), %rdi
	movl	(%r13), %esi
	leaq	-44(%rbp), %rcx
	movl	$178, %edx
	movl	$1, %r8d
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	testb	$1, -44(%rbp)
	jne	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r14), %r14
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_x_sleep2_seq2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.comm	_x_sleep2_seq1,4,2              ## @x_sleep2_seq1
	.comm	_CXD2880_IO_TGT_SYS,4,2         ## @CXD2880_IO_TGT_SYS
	.comm	_x_sleep2_seq2,4,2              ## @x_sleep2_seq2
	.no_dead_strip	_x_sleep2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x_sleep2
_x_sleep2:                              ; @x_sleep2
	.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
	str	wzr, [sp, #12]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x23, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh2:
	adrp	x8, _x_sleep2_seq1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _x_sleep2_seq1@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_5
; %bb.2:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	w1, [x23]
	add	x3, sp, #12
	mov	w2, #178
	mov	w4, #1
	blr	x8
	cbnz	w0, LBB0_5
; %bb.3:
	ldrb	w8, [sp, #12]
	tbnz	w8, #0, LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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_6:
	ldr	x19, [x19]
Lloh8:
	adrp	x8, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
Lloh11:
	adrp	x8, _x_sleep2_seq2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _x_sleep2_seq2@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_cxd2880_io_write_multi_regs
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_x_sleep2_seq1,4,2              ; @x_sleep2_seq1
	.comm	_CXD2880_IO_TGT_SYS,4,2         ; @CXD2880_IO_TGT_SYS
	.comm	_x_sleep2_seq2,4,2              ; @x_sleep2_seq2
	.no_dead_strip	_x_sleep2
.subsections_via_symbols
