	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa6752hs_chip_command
_saa6752hs_chip_command:                ## @saa6752hs_chip_command
	.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
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movb	$3, -43(%rbp)
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_3:
	movb	$2, -43(%rbp)
	jmp	LBB0_10
LBB0_6:
	movb	$6, -43(%rbp)
	jmp	LBB0_10
LBB0_9:
	movb	$0, -43(%rbp)
	jmp	LBB0_10
LBB0_7:
	movb	$7, -43(%rbp)
	jmp	LBB0_10
LBB0_5:
	movb	$5, -43(%rbp)
	jmp	LBB0_10
LBB0_4:
	movb	$4, -43(%rbp)
LBB0_10:
	leaq	-43(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	movq	_jiffies@GOTPCREL(%rip), %r13
	movslq	(%r13), %r12
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movb	$16, -43(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_i2c_master_recv
	xorl	%r14d, %r14d
	testb	$32, -43(%rbp)
	je	LBB0_15
## %bb.11:
	leaq	(%r15,%r15,2), %r15
	addq	%r12, %r15
	leaq	-43(%rbp), %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$10, %edi
	callq	_msleep
	movb	$16, -43(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_i2c_master_recv
	testb	$32, -43(%rbp)
	jne	LBB0_12
	jmp	LBB0_15
LBB0_13:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_15:
	movl	$50, %edi
	callq	_msleep
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_saa6752hs_chip_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa6752hs_chip_command
_saa6752hs_chip_command:                ; @saa6752hs_chip_command
	.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
	sub	w8, w1, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w8, #3
	b	LBB0_10
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_18
LBB0_4:
	mov	w8, #2
	b	LBB0_10
LBB0_5:
	mov	w8, #6
	b	LBB0_10
LBB0_6:
	strb	wzr, [sp, #13]
	b	LBB0_11
LBB0_7:
	mov	w8, #7
	b	LBB0_10
LBB0_8:
	mov	w8, #5
	b	LBB0_10
LBB0_9:
	mov	w8, #4
LBB0_10:
	strb	w8, [sp, #13]
LBB0_11:
	add	x1, sp, #13
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_master_send
Lloh5:
	adrp	x21, _jiffies@GOTPAGE
Lloh6:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldrsw	x20, [x21]
Lloh7:
	adrp	x8, _HZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh9:
	ldrsw	x23, [x8]
	mov	w22, #16
	strb	w22, [sp, #13]
	add	x1, sp, #13
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_master_send
	add	x1, sp, #13
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_master_recv
	ldrb	w8, [sp, #13]
	tbz	w8, #5, LBB0_15
; %bb.12:
	add	x8, x23, x23, lsl #1
	add	x20, x8, x20
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #10
	bl	_msleep
	strb	w22, [sp, #13]
	add	x1, sp, #13
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_master_send
	add	x1, sp, #13
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_master_recv
	ldrb	w8, [sp, #13]
	tbnz	w8, #5, LBB0_13
LBB0_15:
	mov	w19, #0
	b	LBB0_17
LBB0_16:
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_17:
	mov	w0, #50
	bl	_msleep
LBB0_18:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_saa6752hs_chip_command
.subsections_via_symbols
