	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amba_kmi_probe
_amba_kmi_probe:                        ## @amba_kmi_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%esi, %esi
	callq	_amba_request_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	movq	_SERIO_8042@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r13)
	movq	_amba_kmi_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movq	_amba_kmi_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r13)
	movq	_amba_kmi_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movl	44(%r13), %ebx
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_dev_name
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_strlcpy
	movl	40(%r13), %ebx
	movq	%r12, %rdi
	callq	_dev_name
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r14, 32(%r13)
	movq	%r12, 24(%r13)
	movq	%r13, 8(%r14)
	leaq	12(%r15), %rdi
	movl	12(%r15), %ebx
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_clk_get
	movl	%eax, 20(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movl	20(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_iounmap
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_amba_release_regions
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_amba_set_drvdata
	movq	8(%r14), %rdi
	callq	_serio_register_port
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SERIO_8042,4,2                 ## @SERIO_8042
	.comm	_amba_kmi_write,4,2             ## @amba_kmi_write
	.comm	_amba_kmi_open,4,2              ## @amba_kmi_open
	.comm	_amba_kmi_close,4,2             ## @amba_kmi_close
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KMIREFCLK"

	.no_dead_strip	_amba_kmi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amba_kmi_probe
_amba_kmi_probe:                        ; @amba_kmi_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	x1, #0
	bl	_amba_request_regions
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #64
	bl	_kzalloc
	mov	x20, x0
	ldr	w1, [x21]
	mov	w0, #64
	bl	_kzalloc
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _SERIO_8042@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SERIO_8042@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _amba_kmi_write@GOTPAGE
Lloh6:
	ldr	x9, [x9, _amba_kmi_write@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #56]
Lloh8:
	adrp	x8, _amba_kmi_open@GOTPAGE
Lloh9:
	ldr	x8, [x8, _amba_kmi_open@GOTPAGEOFF]
Lloh10:
	adrp	x9, _amba_kmi_close@GOTPAGE
Lloh11:
	ldr	x9, [x9, _amba_kmi_close@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #48]
	ldr	w23, [x21, #44]
	add	x22, x19, #8
	mov	x0, x22
	bl	_dev_name
	mov	x1, x0
	mov	x0, x23
	mov	w2, #4
	bl	_strlcpy
	ldr	w23, [x21, #40]
	mov	x0, x22
	bl	_dev_name
	mov	x1, x0
	mov	x0, x23
	mov	w2, #4
	bl	_strlcpy
	stp	x22, x20, [x21, #24]
	str	x21, [x20, #8]
	mov	x0, x19
	ldr	w23, [x0, #12]!
	bl	_resource_size
	mov	x1, x0
	mov	x0, x23
	bl	_ioremap
	str	w0, [x20]
	cbz	w0, LBB0_5
; %bb.3:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_clk_get
	str	w0, [x20, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x20, #20]
	bl	_PTR_ERR
	mov	x22, x0
	ldr	w0, [x20]
	bl	_iounmap
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_amba_release_regions
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_amba_set_drvdata
	ldr	x0, [x20, #8]
	bl	_serio_register_port
	mov	w22, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SERIO_8042,4,2                 ; @SERIO_8042
	.comm	_amba_kmi_write,4,2             ; @amba_kmi_write
	.comm	_amba_kmi_open,4,2              ; @amba_kmi_open
	.comm	_amba_kmi_close,4,2             ; @amba_kmi_close
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KMIREFCLK"

	.no_dead_strip	_amba_kmi_probe
.subsections_via_symbols
