	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_iproc_i2c_init
_bcm_iproc_i2c_init:                    ## @bcm_iproc_i2c_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_CFG_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_iproc_i2c_rd_reg
	movl	%eax, %ebx
	movq	_CFG_RESET_SHIFT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_CFG_EN_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	notl	%eax
	andl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_iproc_i2c_wr_reg
	movl	$100, %edi
	callq	_udelay
	movl	(%r12), %edi
	callq	_BIT
	notl	%eax
	andl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_iproc_i2c_wr_reg
	movq	_M_FIFO_RX_FLUSH_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_M_FIFO_TX_FLUSH_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_M_FIFO_CTRL_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_iproc_i2c_wr_reg
	movq	_IE_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_iproc_i2c_rd_reg
	movq	_IE_M_ALL_INTERRUPT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IE_M_ALL_INTERRUPT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_iproc_i2c_wr_reg
	movq	_IS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_iproc_i2c_wr_reg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_OFFSET,4,2                 ## @CFG_OFFSET
	.comm	_CFG_RESET_SHIFT,4,2            ## @CFG_RESET_SHIFT
	.comm	_CFG_EN_SHIFT,4,2               ## @CFG_EN_SHIFT
	.comm	_M_FIFO_RX_FLUSH_SHIFT,4,2      ## @M_FIFO_RX_FLUSH_SHIFT
	.comm	_M_FIFO_TX_FLUSH_SHIFT,4,2      ## @M_FIFO_TX_FLUSH_SHIFT
	.comm	_M_FIFO_CTRL_OFFSET,4,2         ## @M_FIFO_CTRL_OFFSET
	.comm	_IE_OFFSET,4,2                  ## @IE_OFFSET
	.comm	_IE_M_ALL_INTERRUPT_MASK,4,2    ## @IE_M_ALL_INTERRUPT_MASK
	.comm	_IE_M_ALL_INTERRUPT_SHIFT,4,2   ## @IE_M_ALL_INTERRUPT_SHIFT
	.comm	_IS_OFFSET,4,2                  ## @IS_OFFSET
	.no_dead_strip	_bcm_iproc_i2c_init
.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_init
_bcm_iproc_i2c_init:                    ; @bcm_iproc_i2c_init
	.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
Lloh0:
	adrp	x21, _CFG_OFFSET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CFG_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_iproc_i2c_rd_reg
	mov	x20, x0
Lloh2:
	adrp	x22, _CFG_RESET_SHIFT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CFG_RESET_SHIFT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BIT
	orr	w20, w0, w20
Lloh4:
	adrp	x8, _CFG_EN_SHIFT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CFG_EN_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_BIT
	bic	w20, w20, w0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_iproc_i2c_wr_reg
	mov	w0, #100
	bl	_udelay
	ldr	w0, [x22]
	bl	_BIT
	bic	w2, w20, w0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_iproc_i2c_wr_reg
Lloh7:
	adrp	x8, _M_FIFO_RX_FLUSH_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_FIFO_RX_FLUSH_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh10:
	adrp	x8, _M_FIFO_TX_FLUSH_SHIFT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_FIFO_TX_FLUSH_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_BIT
	orr	w2, w0, w20
Lloh13:
	adrp	x8, _M_FIFO_CTRL_OFFSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_FIFO_CTRL_OFFSET@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iproc_i2c_wr_reg
Lloh16:
	adrp	x20, _IE_OFFSET@GOTPAGE
Lloh17:
	ldr	x20, [x20, _IE_OFFSET@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_iproc_i2c_rd_reg
Lloh18:
	adrp	x8, _IE_M_ALL_INTERRUPT_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IE_M_ALL_INTERRUPT_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _IE_M_ALL_INTERRUPT_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IE_M_ALL_INTERRUPT_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_iproc_i2c_wr_reg
Lloh24:
	adrp	x8, _IS_OFFSET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IS_OFFSET@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_iproc_i2c_wr_reg
	mov	w0, #0
	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	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_OFFSET,4,2                 ; @CFG_OFFSET
	.comm	_CFG_RESET_SHIFT,4,2            ; @CFG_RESET_SHIFT
	.comm	_CFG_EN_SHIFT,4,2               ; @CFG_EN_SHIFT
	.comm	_M_FIFO_RX_FLUSH_SHIFT,4,2      ; @M_FIFO_RX_FLUSH_SHIFT
	.comm	_M_FIFO_TX_FLUSH_SHIFT,4,2      ; @M_FIFO_TX_FLUSH_SHIFT
	.comm	_M_FIFO_CTRL_OFFSET,4,2         ; @M_FIFO_CTRL_OFFSET
	.comm	_IE_OFFSET,4,2                  ; @IE_OFFSET
	.comm	_IE_M_ALL_INTERRUPT_MASK,4,2    ; @IE_M_ALL_INTERRUPT_MASK
	.comm	_IE_M_ALL_INTERRUPT_SHIFT,4,2   ; @IE_M_ALL_INTERRUPT_SHIFT
	.comm	_IS_OFFSET,4,2                  ; @IS_OFFSET
	.no_dead_strip	_bcm_iproc_i2c_init
.subsections_via_symbols
