	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88ds3103_sleep
_m88ds3103_sleep:                       ## @m88ds3103_sleep
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	24(%r15), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	$0, 16(%r15)
	movq	_SYS_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	(%r15), %rax
	movq	_M88RS6000_CHIP_ID@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leal	(%rdx,%rdx), %esi
	addl	$39, %esi
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_m88ds3103_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	movl	$8, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_m88ds3103_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_m88ds3103_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movl	$35, %esi
	movl	$16, %edx
	movl	$16, %ecx
	callq	_m88ds3103_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_SYS_UNDEFINED,4,2              ## @SYS_UNDEFINED
	.comm	_M88RS6000_CHIP_ID,8,3          ## @M88RS6000_CHIP_ID
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_m88ds3103_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88ds3103_sleep
_m88ds3103_sleep:                       ; @m88ds3103_sleep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x20, [x0]
	ldr	x19, [x20, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	str	xzr, [x20, #16]
Lloh2:
	adrp	x8, _SYS_UNDEFINED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYS_UNDEFINED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh5:
	adrp	x8, _M88RS6000_CHIP_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M88RS6000_CHIP_ID@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh7:
	ldr	x8, [x8]
	cmp	x9, x8
	mov	w8, #39
	mov	w9, #41
	csel	w1, w9, w8, eq
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_m88ds3103_update_bits
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	w1, #8
	mov	w2, #1
	mov	w3, #0
	bl	_m88ds3103_update_bits
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	w1, #4
	mov	w2, #1
	mov	w3, #1
	bl	_m88ds3103_update_bits
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #35
	mov	w2, #16
	mov	w3, #16
	bl	_m88ds3103_update_bits
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_4:
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_SYS_UNDEFINED,4,2              ; @SYS_UNDEFINED
	.comm	_M88RS6000_CHIP_ID,8,3          ; @M88RS6000_CHIP_ID
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_m88ds3103_sleep
.subsections_via_symbols
