	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_iproc_i2c_slave_init
_bcm_iproc_i2c_slave_init:              ## @bcm_iproc_i2c_slave_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
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_CFG_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_iproc_i2c_rd_reg
	movl	%eax, %ebx
	movq	_CFG_RESET_SHIFT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_BIT
	orl	%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
LBB0_2:
	movq	_S_FIFO_RX_FLUSH_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_S_FIFO_TX_FLUSH_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_S_FIFO_CTRL_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_iproc_i2c_wr_reg
	movq	_TIM_CFG_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_iproc_i2c_rd_reg
	movq	_TIM_RAND_SLAVE_STRETCH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TIM_RAND_SLAVE_STRETCH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_SLAVE_CLOCK_STRETCH_TIME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	notl	%esi
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_iproc_i2c_wr_reg
	movq	_S_CFG_SMBUS_ADDR_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_iproc_i2c_rd_reg
	movl	%eax, %ebx
	movq	_S_CFG_EN_NIC_SMB_ADDR3_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_S_CFG_NIC_SMB_ADDR3_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_S_CFG_NIC_SMB_ADDR3_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	(%r14), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	notl	%eax
	andl	%ebx, %eax
	orl	%eax, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_iproc_i2c_wr_reg
	movq	_IS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISR_MASK_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_iproc_i2c_wr_reg
	movq	_IE_S_RX_EVENT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_IE_S_START_BUSY_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_IE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iproc_i2c_wr_reg               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_OFFSET,4,2                 ## @CFG_OFFSET
	.comm	_CFG_RESET_SHIFT,4,2            ## @CFG_RESET_SHIFT
	.comm	_S_FIFO_RX_FLUSH_SHIFT,4,2      ## @S_FIFO_RX_FLUSH_SHIFT
	.comm	_S_FIFO_TX_FLUSH_SHIFT,4,2      ## @S_FIFO_TX_FLUSH_SHIFT
	.comm	_S_FIFO_CTRL_OFFSET,4,2         ## @S_FIFO_CTRL_OFFSET
	.comm	_TIM_CFG_OFFSET,4,2             ## @TIM_CFG_OFFSET
	.comm	_TIM_RAND_SLAVE_STRETCH_MASK,4,2 ## @TIM_RAND_SLAVE_STRETCH_MASK
	.comm	_TIM_RAND_SLAVE_STRETCH_SHIFT,4,2 ## @TIM_RAND_SLAVE_STRETCH_SHIFT
	.comm	_SLAVE_CLOCK_STRETCH_TIME,4,2   ## @SLAVE_CLOCK_STRETCH_TIME
	.comm	_S_CFG_SMBUS_ADDR_OFFSET,4,2    ## @S_CFG_SMBUS_ADDR_OFFSET
	.comm	_S_CFG_EN_NIC_SMB_ADDR3_SHIFT,4,2 ## @S_CFG_EN_NIC_SMB_ADDR3_SHIFT
	.comm	_S_CFG_NIC_SMB_ADDR3_MASK,4,2   ## @S_CFG_NIC_SMB_ADDR3_MASK
	.comm	_S_CFG_NIC_SMB_ADDR3_SHIFT,4,2  ## @S_CFG_NIC_SMB_ADDR3_SHIFT
	.comm	_IS_OFFSET,4,2                  ## @IS_OFFSET
	.comm	_ISR_MASK_SLAVE,4,2             ## @ISR_MASK_SLAVE
	.comm	_IE_S_RX_EVENT_SHIFT,4,2        ## @IE_S_RX_EVENT_SHIFT
	.comm	_IE_S_START_BUSY_SHIFT,4,2      ## @IE_S_START_BUSY_SHIFT
	.comm	_IE_OFFSET,4,2                  ## @IE_OFFSET
	.no_dead_strip	_bcm_iproc_i2c_slave_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_slave_init
_bcm_iproc_i2c_slave_init:              ; @bcm_iproc_i2c_slave_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
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _CFG_OFFSET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CFG_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	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
	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
LBB0_2:
Lloh4:
	adrp	x8, _S_FIFO_RX_FLUSH_SHIFT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_FIFO_RX_FLUSH_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh7:
	adrp	x8, _S_FIFO_TX_FLUSH_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S_FIFO_TX_FLUSH_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_BIT
	orr	w2, w0, w20
Lloh10:
	adrp	x8, _S_FIFO_CTRL_OFFSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S_FIFO_CTRL_OFFSET@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iproc_i2c_wr_reg
Lloh13:
	adrp	x20, _TIM_CFG_OFFSET@GOTPAGE
Lloh14:
	ldr	x20, [x20, _TIM_CFG_OFFSET@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_iproc_i2c_rd_reg
Lloh15:
	adrp	x8, _TIM_RAND_SLAVE_STRETCH_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TIM_RAND_SLAVE_STRETCH_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _TIM_RAND_SLAVE_STRETCH_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TIM_RAND_SLAVE_STRETCH_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	bic	w8, w0, w8
Lloh21:
	adrp	x10, _SLAVE_CLOCK_STRETCH_TIME@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SLAVE_CLOCK_STRETCH_TIME@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	lsl	w9, w10, w9
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_iproc_i2c_wr_reg
Lloh24:
	adrp	x21, _S_CFG_SMBUS_ADDR_OFFSET@GOTPAGE
Lloh25:
	ldr	x21, [x21, _S_CFG_SMBUS_ADDR_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_iproc_i2c_rd_reg
	mov	x20, x0
Lloh26:
	adrp	x8, _S_CFG_EN_NIC_SMB_ADDR3_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _S_CFG_EN_NIC_SMB_ADDR3_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_BIT
Lloh29:
	adrp	x8, _S_CFG_NIC_SMB_ADDR3_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _S_CFG_NIC_SMB_ADDR3_MASK@GOTPAGEOFF]
	orr	w9, w0, w20
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x10, _S_CFG_NIC_SMB_ADDR3_SHIFT@GOTPAGE
Lloh33:
	ldr	x10, [x10, _S_CFG_NIC_SMB_ADDR3_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	bic	w8, w9, w8
	ldr	x9, [x19]
	ldr	w9, [x9]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_iproc_i2c_wr_reg
Lloh35:
	adrp	x8, _IS_OFFSET@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IS_OFFSET@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _ISR_MASK_SLAVE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ISR_MASK_SLAVE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_iproc_i2c_wr_reg
Lloh41:
	adrp	x8, _IE_S_RX_EVENT_SHIFT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IE_S_RX_EVENT_SHIFT@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh44:
	adrp	x8, _IE_S_START_BUSY_SHIFT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IE_S_START_BUSY_SHIFT@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_BIT
	orr	w2, w0, w20
Lloh47:
	adrp	x8, _IE_OFFSET@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IE_OFFSET@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, 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
	b	_iproc_i2c_wr_reg
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_OFFSET,4,2                 ; @CFG_OFFSET
	.comm	_CFG_RESET_SHIFT,4,2            ; @CFG_RESET_SHIFT
	.comm	_S_FIFO_RX_FLUSH_SHIFT,4,2      ; @S_FIFO_RX_FLUSH_SHIFT
	.comm	_S_FIFO_TX_FLUSH_SHIFT,4,2      ; @S_FIFO_TX_FLUSH_SHIFT
	.comm	_S_FIFO_CTRL_OFFSET,4,2         ; @S_FIFO_CTRL_OFFSET
	.comm	_TIM_CFG_OFFSET,4,2             ; @TIM_CFG_OFFSET
	.comm	_TIM_RAND_SLAVE_STRETCH_MASK,4,2 ; @TIM_RAND_SLAVE_STRETCH_MASK
	.comm	_TIM_RAND_SLAVE_STRETCH_SHIFT,4,2 ; @TIM_RAND_SLAVE_STRETCH_SHIFT
	.comm	_SLAVE_CLOCK_STRETCH_TIME,4,2   ; @SLAVE_CLOCK_STRETCH_TIME
	.comm	_S_CFG_SMBUS_ADDR_OFFSET,4,2    ; @S_CFG_SMBUS_ADDR_OFFSET
	.comm	_S_CFG_EN_NIC_SMB_ADDR3_SHIFT,4,2 ; @S_CFG_EN_NIC_SMB_ADDR3_SHIFT
	.comm	_S_CFG_NIC_SMB_ADDR3_MASK,4,2   ; @S_CFG_NIC_SMB_ADDR3_MASK
	.comm	_S_CFG_NIC_SMB_ADDR3_SHIFT,4,2  ; @S_CFG_NIC_SMB_ADDR3_SHIFT
	.comm	_IS_OFFSET,4,2                  ; @IS_OFFSET
	.comm	_ISR_MASK_SLAVE,4,2             ; @ISR_MASK_SLAVE
	.comm	_IE_S_RX_EVENT_SHIFT,4,2        ; @IE_S_RX_EVENT_SHIFT
	.comm	_IE_S_START_BUSY_SHIFT,4,2      ; @IE_S_START_BUSY_SHIFT
	.comm	_IE_OFFSET,4,2                  ; @IE_OFFSET
	.no_dead_strip	_bcm_iproc_i2c_slave_init
.subsections_via_symbols
