	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda10071_cmd_execute
_tda10071_cmd_execute:                  ## @tda10071_cmd_execute
	.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	16(%rdi), %r14
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_mutex_lock
	movl	4(%r15), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	xorl	%esi, %esi
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movl	4(%r15), %edi
	movl	$31, %esi
	movl	$1, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	$1, -44(%rbp)
	movl	$1000, %r12d                    ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movl	$31, %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$200, %edi
	movl	$5000, %esi                     ## imm = 0x1388
	callq	_usleep_range
	leal	-1(%r12), %r13d
	cmpl	$1, %r12d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -44(%rbp)
	movl	%r13d, %r12d
	jne	LBB0_6
LBB0_13:
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_dev_dbg
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	jne	LBB0_10
## %bb.14:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"loop=%d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_tda10071_cmd_execute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda10071_cmd_execute
_tda10071_cmd_execute:                  ; @tda10071_cmd_execute
	.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	x19, [x0, #16]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	bl	_mutex_lock
	ldr	w0, [x20, #4]
	ldp	w3, w2, [x21]
	mov	w1, #0
	bl	_regmap_bulk_write
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.2:
	ldr	w0, [x20, #4]
	mov	w22, #1
	mov	w1, #31
	mov	w2, #1
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.3:
	str	w22, [sp, #12]
	mov	w22, #1000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	add	x2, sp, #12
	mov	w1, #31
	bl	_regmap_read
	cbnz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #200
	mov	w1, #5000
	bl	_usleep_range
	subs	w22, w22, #1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_mutex_unlock
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_dbg
	cbz	w22, LBB0_15
; %bb.8:
	mov	w21, #0
	b	LBB0_14
LBB0_9:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_11:
	mov	x21, x0
LBB0_12:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_13:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
LBB0_14:
	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
LBB0_15:
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"loop=%d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_tda10071_cmd_execute
.subsections_via_symbols
