	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_kp_start
_bcm_kp_start:                          ## @bcm_kp_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movl	(%rbx), %edi
	movq	_KPIOR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movl	4(%rbx), %edi
	movq	_KPIMR0_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movl	8(%rbx), %edi
	movq	_KPIMR1_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movl	12(%rbx), %edi
	movq	_KPEMR0_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movl	12(%rbx), %edi
	movq	_KPEMR1_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movl	12(%rbx), %edi
	movq	_KPEMR2_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movl	12(%rbx), %edi
	movq	_KPEMR3_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movq	_KPICR0_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel
	movq	_KPICR1_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel
	movq	_KPSSR0_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_KPSSR1_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_KPCR_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	16(%rbx), %edi
	movq	_KPCR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KPIOR_OFFSET,8,3               ## @KPIOR_OFFSET
	.comm	_KPIMR0_OFFSET,8,3              ## @KPIMR0_OFFSET
	.comm	_KPIMR1_OFFSET,8,3              ## @KPIMR1_OFFSET
	.comm	_KPEMR0_OFFSET,8,3              ## @KPEMR0_OFFSET
	.comm	_KPEMR1_OFFSET,8,3              ## @KPEMR1_OFFSET
	.comm	_KPEMR2_OFFSET,8,3              ## @KPEMR2_OFFSET
	.comm	_KPEMR3_OFFSET,8,3              ## @KPEMR3_OFFSET
	.comm	_KPICR0_OFFSET,8,3              ## @KPICR0_OFFSET
	.comm	_KPICR1_OFFSET,8,3              ## @KPICR1_OFFSET
	.comm	_KPSSR0_OFFSET,8,3              ## @KPSSR0_OFFSET
	.comm	_KPSSR1_OFFSET,8,3              ## @KPSSR1_OFFSET
	.comm	_KPCR_ENABLE,4,2                ## @KPCR_ENABLE
	.comm	_KPCR_OFFSET,8,3                ## @KPCR_OFFSET
	.no_dead_strip	_bcm_kp_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_kp_start
_bcm_kp_start:                          ; @bcm_kp_start
	.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
	ldr	x0, [x0, #40]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_3
LBB0_2:
	ldr	w0, [x19]
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _KPIOR_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KPIOR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _KPIMR0_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KPIMR0_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #8]
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x9, _KPIMR1_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KPIMR1_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #12]
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _KPEMR0_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KPEMR0_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #12]
	ldr	x8, [x19, #24]
Lloh12:
	adrp	x9, _KPEMR1_OFFSET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KPEMR1_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #12]
	ldr	x8, [x19, #24]
Lloh15:
	adrp	x9, _KPEMR2_OFFSET@GOTPAGE
Lloh16:
	ldr	x9, [x9, _KPEMR2_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #12]
	ldr	x8, [x19, #24]
Lloh18:
	adrp	x9, _KPEMR3_OFFSET@GOTPAGE
Lloh19:
	ldr	x9, [x9, _KPEMR3_OFFSET@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #24]
Lloh21:
	adrp	x9, _KPICR0_OFFSET@GOTPAGE
Lloh22:
	ldr	x9, [x9, _KPICR0_OFFSET@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel
	ldr	x8, [x19, #24]
Lloh24:
	adrp	x9, _KPICR1_OFFSET@GOTPAGE
Lloh25:
	ldr	x9, [x9, _KPICR1_OFFSET@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel
	ldr	x8, [x19, #24]
Lloh27:
	adrp	x9, _KPSSR0_OFFSET@GOTPAGE
Lloh28:
	ldr	x9, [x9, _KPSSR0_OFFSET@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldp	x9, x8, [x19, #24]
	str	x0, [x8]
Lloh30:
	adrp	x8, _KPSSR1_OFFSET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KPSSR1_OFFSET@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	_readl
	ldp	x9, x8, [x19, #24]
	str	x0, [x8]
	ldr	w8, [x19, #16]
Lloh33:
	adrp	x10, _KPCR_ENABLE@GOTPAGE
Lloh34:
	ldr	x10, [x10, _KPCR_ENABLE@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w0, w10, w8
Lloh36:
	adrp	x8, _KPCR_OFFSET@GOTPAGE
Lloh37:
	ldr	x8, [x8, _KPCR_OFFSET@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	add	x1, x8, x9
	bl	_writel
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KPIOR_OFFSET,8,3               ; @KPIOR_OFFSET
	.comm	_KPIMR0_OFFSET,8,3              ; @KPIMR0_OFFSET
	.comm	_KPIMR1_OFFSET,8,3              ; @KPIMR1_OFFSET
	.comm	_KPEMR0_OFFSET,8,3              ; @KPEMR0_OFFSET
	.comm	_KPEMR1_OFFSET,8,3              ; @KPEMR1_OFFSET
	.comm	_KPEMR2_OFFSET,8,3              ; @KPEMR2_OFFSET
	.comm	_KPEMR3_OFFSET,8,3              ; @KPEMR3_OFFSET
	.comm	_KPICR0_OFFSET,8,3              ; @KPICR0_OFFSET
	.comm	_KPICR1_OFFSET,8,3              ; @KPICR1_OFFSET
	.comm	_KPSSR0_OFFSET,8,3              ; @KPSSR0_OFFSET
	.comm	_KPSSR1_OFFSET,8,3              ; @KPSSR1_OFFSET
	.comm	_KPCR_ENABLE,4,2                ; @KPCR_ENABLE
	.comm	_KPCR_OFFSET,8,3                ; @KPCR_OFFSET
	.no_dead_strip	_bcm_kp_start
.subsections_via_symbols
