	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function it913x_sleep
_it913x_sleep:                          ## @it913x_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	16(%r15), %r14
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$0, 4(%r15)
	movl	8(%r15), %edi
	leaq	l_.str.1(%rip), %rdx
	movl	$8449088, %esi                  ## imm = 0x80EC40
	movl	$1, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movslq	(%r15), %rdx
	movq	_IT913X_ROLE_DUAL_MASTER@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	movl	$4, %eax
	movl	$15, %ebx
	cmovel	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r15), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$8449026, %esi                  ## imm = 0x80EC02
	movl	%ebx, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	8(%r15), %edi
	leaq	l_.str.4(%rip), %rdx
	movl	$8449042, %esi                  ## imm = 0x80EC12
	movl	$4, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	8(%r15), %edi
	leaq	l_.str.5(%rip), %rdx
	movl	$8449047, %esi                  ## imm = 0x80EC17
	movl	$9, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movl	8(%r15), %edi
	leaq	l_.str.6(%rip), %rdx
	movl	$8449058, %esi                  ## imm = 0x80EC22
	movl	$10, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	8(%r15), %edi
	leaq	l_.str.1(%rip), %rdx
	movl	$8449056, %esi                  ## imm = 0x80EC20
	movl	$1, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	8(%r15), %edi
	leaq	L_.str.7(%rip), %rdx
	movl	$8449087, %esi                  ## imm = 0x80EC3F
	movl	$1, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"role %u\n"

	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.space	2

	.comm	_IT913X_ROLE_DUAL_MASTER,8,3    ## @IT913X_ROLE_DUAL_MASTER
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"role %u, len %d\n"

	.section	__TEXT,__literal16,16byte_literals
L_.str.3:                               ## @.str.3
	.asciz	"?\037?>\000\000\000\000\000\000\000\000\000\000\000"

	.section	__TEXT,__const
l_.str.4:                               ## @.str.4
	.space	5

l_.str.5:                               ## @.str.5
	.space	10

l_.str.6:                               ## @.str.6
	.space	11

	.section	__TEXT,__cstring,cstring_literals
L_.str.7:                               ## @.str.7
	.asciz	"\001"

L_.str.8:                               ## @.str.8
	.asciz	"failed %d\n"

	.no_dead_strip	_it913x_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function it913x_sleep
_it913x_sleep:                          ; @it913x_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
	mov	w21, #60418
	movk	w21, #128, lsl #16
	ldr	x22, [x0]
	ldr	x19, [x22, #16]
	ldr	w2, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	str	wzr, [x22, #4]
	ldr	w0, [x22, #8]
	add	w1, w21, #62
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w3, #1
	bl	_regmap_bulk_write
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldrsw	x2, [x22]
Lloh4:
	adrp	x8, _IT913X_ROLE_DUAL_MASTER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IT913X_ROLE_DUAL_MASTER@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	mov	w9, #15
	mov	w10, #4
	cmp	x8, x2
	csel	x8, x10, x9, eq
	csel	w20, w10, w9, eq
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	ldr	w0, [x22, #8]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #60418
	movk	w1, #128, lsl #16
	mov	x3, x20
	bl	_regmap_bulk_write
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w0, [x22, #8]
	add	w1, w21, #16
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w3, #4
	bl	_regmap_bulk_write
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	w0, [x22, #8]
	add	w1, w21, #21
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w3, #9
	bl	_regmap_bulk_write
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x22, #8]
	add	w1, w21, #32
Lloh15:
	adrp	x2, l_.str.6@PAGE
Lloh16:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w3, #10
	bl	_regmap_bulk_write
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x22, #8]
	add	w1, w21, #30
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w3, #1
	bl	_regmap_bulk_write
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x22, #8]
	add	w1, w21, #61
Lloh19:
	adrp	x2, l_.str.7@PAGE
Lloh20:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	w3, #1
	bl	_regmap_bulk_write
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_7:
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
LBB0_8:
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"role %u\n"

	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.space	2

	.comm	_IT913X_ROLE_DUAL_MASTER,8,3    ; @IT913X_ROLE_DUAL_MASTER
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"role %u, len %d\n"

	.section	__TEXT,__literal16,16byte_literals
l_.str.3:                               ; @.str.3
	.asciz	"?\037?>\000\000\000\000\000\000\000\000\000\000\000"

	.section	__TEXT,__const
l_.str.4:                               ; @.str.4
	.space	5

l_.str.5:                               ; @.str.5
	.space	10

l_.str.6:                               ; @.str.6
	.space	11

	.section	__TEXT,__cstring,cstring_literals
l_.str.7:                               ; @.str.7
	.asciz	"\001"

l_.str.8:                               ; @.str.8
	.asciz	"failed %d\n"

	.no_dead_strip	_it913x_sleep
.subsections_via_symbols
