	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_iproc_i2c_check_status
_bcm_iproc_i2c_check_status:            ## @bcm_iproc_i2c_check_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_M_CMD_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iproc_i2c_rd_reg
                                        ## kill: def $eax killed $eax def $rax
	movq	_M_CMD_STATUS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_M_CMD_STATUS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leal	-128(%rax), %ecx
	cmpl	$6, %ecx
	ja	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bcm_iproc_i2c_enable_disable
	movq	%rbx, %rdi
	callq	_bcm_iproc_i2c_init
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bcm_iproc_i2c_enable_disable
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_5:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	movl	(%rbx), %edi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_11
LBB0_8:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_10:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_11:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	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_13, LBB0_13-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_M_CMD_OFFSET,4,2               ## @M_CMD_OFFSET
	.comm	_M_CMD_STATUS_SHIFT,4,2         ## @M_CMD_STATUS_SHIFT
	.comm	_M_CMD_STATUS_MASK,4,2          ## @M_CMD_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lost bus arbitration\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"NAK addr:0x%02x\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"NAK data\n"

L_.str.3:                               ## @.str.3
	.asciz	"bus timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.4:                               ## @.str.4
	.asciz	"FIFO under-run\n"

L_.str.5:                               ## @.str.5
	.asciz	"RX FIFO full\n"

L_.str.6:                               ## @.str.6
	.asciz	"unknown error code=%d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_bcm_iproc_i2c_check_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_status
_bcm_iproc_i2c_check_status:            ; @bcm_iproc_i2c_check_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _M_CMD_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_CMD_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_iproc_i2c_rd_reg
Lloh3:
	adrp	x8, _M_CMD_STATUS_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_CMD_STATUS_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh6:
	adrp	x9, _M_CMD_STATUS_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_CMD_STATUS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w8, w9
	sub	w9, w8, #128
	cmp	w9, #6
	b.hi	LBB0_3
; %bb.1:
	mov	w0, #0
Lloh9:
	adrp	x8, lJTI0_0@PAGE
Lloh10:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	mov	w1, #0
	bl	_bcm_iproc_i2c_enable_disable
	mov	x0, x19
	bl	_bcm_iproc_i2c_init
	mov	x0, x19
	mov	w1, #1
	bl	_bcm_iproc_i2c_enable_disable
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_5:
	bl	_dev_dbg
Lloh19:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_7:
	ldr	w0, [x19]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh27:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	bl	_dev_dbg
Lloh31:
	adrp	x8, _ENXIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_4-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	_M_CMD_OFFSET,4,2               ; @M_CMD_OFFSET
	.comm	_M_CMD_STATUS_SHIFT,4,2         ; @M_CMD_STATUS_SHIFT
	.comm	_M_CMD_STATUS_MASK,4,2          ; @M_CMD_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lost bus arbitration\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"NAK addr:0x%02x\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"NAK data\n"

l_.str.3:                               ; @.str.3
	.asciz	"bus timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.4:                               ; @.str.4
	.asciz	"FIFO under-run\n"

l_.str.5:                               ; @.str.5
	.asciz	"RX FIFO full\n"

l_.str.6:                               ; @.str.6
	.asciz	"unknown error code=%d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_bcm_iproc_i2c_check_status
.subsections_via_symbols
