	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_i2c_wait_done
_bttv_i2c_wait_done:                    ## @bttv_i2c_wait_done
	.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, %rbx
	movl	(%rdi), %r14d
	movl	4(%rdi), %r15d
	movl	$85, %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%edi, %edi
	subl	(%rdx), %edi
	addl	(%rcx), %eax
	cmovnel	%esi, %edi
	movq	_BT848_INT_RACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	$1, %eax
	cmovel	%edi, %eax
	movl	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BT848_INT_RACK,4,2             ## @BT848_INT_RACK
	.no_dead_strip	_bttv_i2c_wait_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_i2c_wait_done
_bttv_i2c_wait_done:                    ; @bttv_i2c_wait_done
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldp	w21, w20, [x0]
	mov	w0, #85
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wait_event_interruptible_timeout
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EIO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	cmn	w0, w8
	csneg	w8, wzr, w9, ne
Lloh6:
	adrp	x9, _BT848_INT_RACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BT848_INT_RACK@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w10
	csinc	w0, w8, wzr, eq
	str	wzr, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BT848_INT_RACK,4,2             ; @BT848_INT_RACK
	.no_dead_strip	_bttv_i2c_wait_done
.subsections_via_symbols
