	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmstb_i2c_xfer_bsc_data
_brcmstb_i2c_xfer_bsc_data:             ## @brcmstb_i2c_xfer_bsc_data
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	_I2C_M_IGNORE_NAK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%rcx), %ebx
	callq	_brcmstb_i2c_get_data_regsz
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	_CMD_WR_NOACK@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movq	_CMD_WR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_CMD_RD_NOACK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r13d
	movq	_BSC_CTLHI_REG_IGNORE_ACK_MASK@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	orl	(%rax), %esi
	jmp	LBB0_9
LBB0_6:
	movq	_CMD_RD@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r13d
	movq	_BSC_CTLHI_REG_IGNORE_ACK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	(%r15), %esi
LBB0_9:
	movl	%esi, (%r15)
	movq	_ctlhi_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bsc_writel
	movq	_BSC_CTL_REG_DTF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	4(%r15), %eax
	movq	%r12, %rbx
	movq	_CMD_WR@GOTPCREL(%rip), %r12
	movq	_CMD_WR_NOACK@GOTPCREL(%rip), %rsi
	movq	_DTF_WR_MASK@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpl	(%rsi), %r13d
	je	LBB0_11
## %bb.10:
	movq	_DTF_RD_MASK@GOTPCREL(%rip), %rdx
LBB0_11:
	cmpl	(%r12), %r13d
	cmoveq	%rcx, %rdx
	orl	(%rdx), %eax
	movl	%eax, 4(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BSC_CNT_REG1_MASK
	movq	_BSC_CNT_REG1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r14d, %esi
	shll	%cl, %esi
	andl	%eax, %esi
	movq	_cnt_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bsc_writel
	cmpl	(%r12), %r13d
	sete	%al
	movl	%r13d, -84(%rbp)                ## 4-byte Spill
	movq	_CMD_WR_NOACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	sete	%cl
	orb	%al, %cl
	cmpb	$1, %cl
	jne	LBB0_27
## %bb.12:
	testl	%r14d, %r14d
	je	LBB0_27
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %ecx
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	movslq	%eax, %rcx
	movl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r8d
	andl	$-2, %r8d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %r13
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$1, %r12d
	xorl	%r15d, %r15d
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_data_in@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r9,4), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r9, %r14
	movq	%r10, %rbx
	callq	_bsc_writel
	movq	%rbx, %r10
	movq	%r14, %r9
	movl	-92(%rbp), %r14d                ## 4-byte Reload
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	addq	-72(%rbp), %r10                 ## 8-byte Folded Reload
	incq	%r9
	addq	-112(%rbp), %r13                ## 8-byte Folded Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r12
	addq	%rax, %r15
	cmpl	%r14d, %r10d
	jae	LBB0_27
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movl	$0, %esi
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	imull	-88(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%edi, %edi
	xorl	%esi, %esi
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%edx, %ecx
	sarl	%cl, %esi
	addq	%r10, %rdi
	cmpl	%r14d, %edi
	jae	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rdi,4), %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	orl	%edx, %esi
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=2
	addq	$2, %rdi
	cmpq	%rdi, %r8
	je	LBB0_23
LBB0_18:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %ecx
	sarl	%cl, %esi
	leal	(%r15,%rdi), %ecx
	cmpl	%r14d, %ecx
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	-4(%r13,%rdi,4), %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	orl	%ebx, %esi
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	%edx, %ecx
	sarl	%cl, %esi
	leal	(%r12,%rdi), %ecx
	cmpl	%r14d, %ecx
	jae	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	(%r13,%rdi,4), %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	orl	%ebx, %esi
	jmp	LBB0_22
LBB0_27:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_brcmstb_send_i2c_cmd
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	movl	%eax, %r13d
	movl	(%r15), %edi
	movq	_cmd_string@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_38
LBB0_29:
	movq	_CMD_RD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	sete	%al
	movq	_CMD_RD_NOACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	sete	%cl
	orb	%al, %cl
	xorl	%r13d, %r13d
	cmpb	$1, %cl
	jne	LBB0_38
## %bb.30:
	testl	%r14d, %r14d
	je	LBB0_38
## %bb.31:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	%eax, %rcx
	movl	%eax, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_32 Depth=1
	addq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	incq	%r12
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	addq	%r15, %rbx
	cmpl	%r14d, %r13d
	jae	LBB0_37
LBB0_32:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
	movq	_data_out@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_bsc_readl
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rdi
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rbx,%rdx), %ecx
	cmpl	%r14d, %ecx
	jae	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	movzbl	%al, %ecx
	movl	%ecx, (%rsi,%rdx,4)
	movzbl	(%rdi), %ecx
	sarl	%cl, %eax
	incq	%rdx
	cmpq	%rdx, %r15
	jne	LBB0_34
	jmp	LBB0_36
LBB0_37:
	xorl	%r13d, %r13d
LBB0_38:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_IGNORE_NAK,4,2           ## @I2C_M_IGNORE_NAK
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_CMD_RD_NOACK,4,2               ## @CMD_RD_NOACK
	.comm	_CMD_WR_NOACK,4,2               ## @CMD_WR_NOACK
	.comm	_BSC_CTLHI_REG_IGNORE_ACK_MASK,4,2 ## @BSC_CTLHI_REG_IGNORE_ACK_MASK
	.comm	_CMD_RD,4,2                     ## @CMD_RD
	.comm	_CMD_WR,4,2                     ## @CMD_WR
	.comm	_ctlhi_reg,4,2                  ## @ctlhi_reg
	.comm	_BSC_CTL_REG_DTF_MASK,4,2       ## @BSC_CTL_REG_DTF_MASK
	.comm	_DTF_WR_MASK,4,2                ## @DTF_WR_MASK
	.comm	_DTF_RD_MASK,4,2                ## @DTF_RD_MASK
	.comm	_BSC_CNT_REG1_SHIFT,4,2         ## @BSC_CNT_REG1_SHIFT
	.comm	_cnt_reg,4,2                    ## @cnt_reg
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.comm	_data_in,8,3                    ## @data_in
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s failure"

	.comm	_cmd_string,8,3                 ## @cmd_string
	.comm	_data_out,8,3                   ## @data_out
	.no_dead_strip	_brcmstb_i2c_xfer_bsc_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmstb_i2c_xfer_bsc_data
_brcmstb_i2c_xfer_bsc_data:             ; @brcmstb_i2c_xfer_bsc_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x0, #8]
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _I2C_M_IGNORE_NAK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_M_IGNORE_NAK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w25, w9, w8
	bl	_brcmstb_i2c_get_data_regsz
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x21, _CMD_WR_NOACK@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CMD_WR_NOACK@GOTPAGEOFF]
Lloh8:
	adrp	x22, _CMD_WR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _CMD_WR@GOTPAGEOFF]
	cbz	w25, LBB0_2
; %bb.1:
Lloh10:
	adrp	x9, _CMD_RD_NOACK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CMD_RD_NOACK@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x21, x9, eq
	ldr	w25, [x8]
Lloh12:
	adrp	x8, _BSC_CTLHI_REG_IGNORE_ACK_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BSC_CTLHI_REG_IGNORE_ACK_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w1, w9, w8
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x9, _CMD_RD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CMD_RD@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x22, x9, eq
	ldr	w25, [x8]
Lloh17:
	adrp	x8, _BSC_CTLHI_REG_IGNORE_ACK_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BSC_CTLHI_REG_IGNORE_ACK_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x24]
	bic	w1, w9, w8
LBB0_3:
	str	w1, [x24]
Lloh20:
	adrp	x8, _ctlhi_reg@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ctlhi_reg@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bsc_writel
	ldr	w8, [x24, #4]
Lloh23:
	adrp	x9, _BSC_CTL_REG_DTF_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BSC_CTL_REG_DTF_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	bic	w8, w8, w9
	ldr	w9, [x22]
	ldr	w10, [x21]
	cmp	w25, w10
	ccmp	w25, w9, #4, ne
Lloh26:
	adrp	x9, _DTF_WR_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DTF_WR_MASK@GOTPAGEOFF]
Lloh28:
	adrp	x10, _DTF_RD_MASK@GOTPAGE
Lloh29:
	ldr	x10, [x10, _DTF_RD_MASK@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x24, #4]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BSC_CNT_REG1_MASK
Lloh30:
	adrp	x8, _BSC_CNT_REG1_SHIFT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BSC_CNT_REG1_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	lsl	w8, w20, w8
	and	w1, w8, w0
Lloh33:
	adrp	x8, _cnt_reg@GOTPAGE
Lloh34:
	ldr	x8, [x8, _cnt_reg@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bsc_writel
	ldr	w8, [x22]
	ldr	w9, [x21]
	cmp	w25, w9
	str	w25, [sp, #4]                   ; 4-byte Folded Spill
	ccmp	w25, w8, #4, ne
	ccmp	w20, #0, #4, eq
	b.ne	LBB0_6
LBB0_4:
	mov	x0, x19
	ldr	w21, [sp, #4]                   ; 4-byte Folded Reload
	mov	x1, x21
	bl	_brcmstb_send_i2c_cmd
	cbz	w0, LBB0_14
; %bb.5:
	mov	x24, x0
	ldr	w0, [x19]
Lloh36:
	adrp	x8, _cmd_string@GOTPAGE
Lloh37:
	ldr	x8, [x8, _cmd_string@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	w2, [x8, w21, uxtw #2]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_16
LBB0_6:
	mov	x24, #0
	mov	x25, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sub	w26, w8, #1
	sxtw	x27, w8
	sbfiz	x28, x8, #2, #32
	mov	x21, x23
	mov	w22, w8
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w1, #0
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh41:
	adrp	x8, _data_in@GOTPAGE
Lloh42:
	ldr	x8, [x8, _data_in@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	ldr	w2, [x8, x24, lsl #2]
	mov	x0, x19
	bl	_bsc_writel
	add	x24, x24, #1
	add	x21, x21, x28
	add	x25, x25, x27
	cmp	w25, w20
	b.hs	LBB0_4
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w1, #0
Lloh44:
	adrp	x8, _BITS_PER_BYTE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	mul	w9, w8, w26
	mov	x10, x22
	mov	x11, x25
	mov	x12, x21
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x12, x12, #4
	add	w11, w11, #1
	subs	x10, x10, #1
	b.eq	LBB0_8
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w1, w1, w8
	cmp	w11, w20
	b.hs	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w13, [x12]
	lsl	w13, w13, w9
	orr	w1, w13, w1
	b	LBB0_11
LBB0_14:
Lloh47:
	adrp	x8, _CMD_RD@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CMD_RD@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _CMD_RD_NOACK@GOTPAGE
Lloh51:
	ldr	x9, [x9, _CMD_RD_NOACK@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	cmp	w21, w9
	ccmp	w21, w8, #4, ne
	ccmp	w20, #0, #4, eq
	b.ne	LBB0_17
LBB0_15:
	mov	w24, #0
LBB0_16:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	x21, #0
	mov	x22, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	mov	x8, x9
	sxtw	x24, w8
	sbfiz	x25, x8, #2, #32
Lloh53:
	adrp	x26, _data_out@GOTPAGE
Lloh54:
	ldr	x26, [x26, _data_out@GOTPAGEOFF]
Lloh55:
	adrp	x27, _BITS_PER_BYTE@GOTPAGE
Lloh56:
	ldr	x27, [x27, _BITS_PER_BYTE@GOTPAGEOFF]
	mov	w28, w9
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x21, x21, #1
	add	x23, x23, x25
	add	x22, x22, x24
	cmp	w22, w20
	b.hs	LBB0_15
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	x8, [x26]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_bsc_readl
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x8, x28
	mov	x9, x22
	mov	x10, x23
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, w20
	b.hs	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	and	w11, w0, #0xff
	str	w11, [x10], #4
	ldr	w11, [x27]
	asr	w0, w0, w11
	add	w9, w9, #1
	subs	x8, x8, #1
	b.ne	LBB0_21
	b	LBB0_18
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_IGNORE_NAK,4,2           ; @I2C_M_IGNORE_NAK
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_CMD_RD_NOACK,4,2               ; @CMD_RD_NOACK
	.comm	_CMD_WR_NOACK,4,2               ; @CMD_WR_NOACK
	.comm	_BSC_CTLHI_REG_IGNORE_ACK_MASK,4,2 ; @BSC_CTLHI_REG_IGNORE_ACK_MASK
	.comm	_CMD_RD,4,2                     ; @CMD_RD
	.comm	_CMD_WR,4,2                     ; @CMD_WR
	.comm	_ctlhi_reg,4,2                  ; @ctlhi_reg
	.comm	_BSC_CTL_REG_DTF_MASK,4,2       ; @BSC_CTL_REG_DTF_MASK
	.comm	_DTF_WR_MASK,4,2                ; @DTF_WR_MASK
	.comm	_DTF_RD_MASK,4,2                ; @DTF_RD_MASK
	.comm	_BSC_CNT_REG1_SHIFT,4,2         ; @BSC_CNT_REG1_SHIFT
	.comm	_cnt_reg,4,2                    ; @cnt_reg
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.comm	_data_in,8,3                    ; @data_in
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s failure"

	.comm	_cmd_string,8,3                 ; @cmd_string
	.comm	_data_out,8,3                   ; @data_out
	.no_dead_strip	_brcmstb_i2c_xfer_bsc_data
.subsections_via_symbols
