	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_iproc_i2c_check_slave_status
_bcm_iproc_i2c_check_slave_status:      ## @bcm_iproc_i2c_check_slave_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_S_CMD_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iproc_i2c_rd_reg
	movl	%eax, %ebx
	movq	_S_CMD_START_BUSY_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movq	_S_CMD_STATUS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_S_CMD_STATUS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_S_CMD_STATUS_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bcm_iproc_i2c_enable_disable
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bcm_iproc_i2c_slave_init
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bcm_iproc_i2c_enable_disable   ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_CMD_OFFSET,4,2               ## @S_CMD_OFFSET
	.comm	_S_CMD_START_BUSY_SHIFT,4,2     ## @S_CMD_START_BUSY_SHIFT
	.comm	_S_CMD_STATUS_SHIFT,4,2         ## @S_CMD_STATUS_SHIFT
	.comm	_S_CMD_STATUS_MASK,4,2          ## @S_CMD_STATUS_MASK
	.comm	_S_CMD_STATUS_TIMEOUT,4,2       ## @S_CMD_STATUS_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slave random stretch time timeout\n"

	.no_dead_strip	_bcm_iproc_i2c_check_slave_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_iproc_i2c_check_slave_status
_bcm_iproc_i2c_check_slave_status:      ; @bcm_iproc_i2c_check_slave_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _S_CMD_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_CMD_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_iproc_i2c_rd_reg
	mov	x20, x0
Lloh3:
	adrp	x8, _S_CMD_START_BUSY_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_CMD_START_BUSY_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w20
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _S_CMD_STATUS_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_CMD_STATUS_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	asr	w8, w20, w8
Lloh9:
	adrp	x9, _S_CMD_STATUS_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S_CMD_STATUS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w8, w9
Lloh12:
	adrp	x9, _S_CMD_STATUS_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S_CMD_STATUS_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	mov	w1, #0
	bl	_bcm_iproc_i2c_enable_disable
	mov	x0, x19
	mov	w1, #1
	bl	_bcm_iproc_i2c_slave_init
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcm_iproc_i2c_enable_disable
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_S_CMD_OFFSET,4,2               ; @S_CMD_OFFSET
	.comm	_S_CMD_START_BUSY_SHIFT,4,2     ; @S_CMD_START_BUSY_SHIFT
	.comm	_S_CMD_STATUS_SHIFT,4,2         ; @S_CMD_STATUS_SHIFT
	.comm	_S_CMD_STATUS_MASK,4,2          ; @S_CMD_STATUS_MASK
	.comm	_S_CMD_STATUS_TIMEOUT,4,2       ; @S_CMD_STATUS_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slave random stretch time timeout\n"

	.no_dead_strip	_bcm_iproc_i2c_check_slave_status
.subsections_via_symbols
