	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apbps2_of_probe
_apbps2_of_probe:                       ## @apbps2_of_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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rsi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rsi, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_iowrite32be
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movl	%eax, %r15d
	movq	_apbps2_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movslq	-44(%rbp), %rax
	imulq	$1759218605, %rax, %rdi         ## imm = 0x68DB8BAD
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$44, %rdi
	addl	%eax, %edi
	movq	8(%r14), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_iowrite32be
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_SERIO_8042@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_apbps2_open@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_apbps2_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_apbps2_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%r14, 8(%rax)
	movl	4(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_apbps2_idx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	leaq	L_.str.6(%rip), %rdx
	movl	$4, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_snprintf
	movq	8(%r14), %rcx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_dev_info
	movq	(%r14), %rdi
	callq	_serio_register_port
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memory allocation failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_apbps2_isr,4,2                 ## @apbps2_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"apbps2"

L_.str.2:                               ## @.str.2
	.asciz	"request IRQ%d failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"freq"

L_.str.4:                               ## @.str.4
	.asciz	"unable to get core frequency\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SERIO_8042,4,2                 ## @SERIO_8042
	.comm	_apbps2_open,4,2                ## @apbps2_open
	.comm	_apbps2_close,4,2               ## @apbps2_close
	.comm	_apbps2_write,4,2               ## @apbps2_write
L_.str.5:                               ## @.str.5
	.asciz	"APBPS2 PS/2"

L_.str.6:                               ## @.str.6
	.asciz	"apbps2_%d"

	.comm	_apbps2_idx,4,2                 ## @apbps2_idx
L_.str.7:                               ## @.str.7
	.asciz	"irq = %d, base = 0x%p\n"

	.no_dead_strip	_apbps2_of_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apbps2_of_probe
_apbps2_of_probe:                       ; @apbps2_of_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_6:
	add	x1, x0, #4
	mov	w0, #0
	bl	_iowrite32be
	ldr	w0, [x19]
	mov	w1, #0
	bl	_irq_of_parse_and_map
	mov	x21, x0
Lloh9:
	adrp	x8, _apbps2_isr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _apbps2_isr@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x4, l_.str.1@PAGE
Lloh16:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_9
; %bb.7:
	mov	x22, x0
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	x0, LBB0_11
; %bb.10:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
	ldrsw	x8, [sp, #12]
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w0, w8, w9
	ldr	x1, [x20, #8]
	bl	_iowrite32be
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.12:
Lloh25:
	adrp	x8, _SERIO_8042@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SERIO_8042@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _apbps2_open@GOTPAGE
Lloh29:
	ldr	x9, [x9, _apbps2_open@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh31:
	adrp	x8, _apbps2_close@GOTPAGE
Lloh32:
	ldr	x8, [x8, _apbps2_close@GOTPAGEOFF]
Lloh33:
	adrp	x9, _apbps2_write@GOTPAGE
Lloh34:
	ldr	x9, [x9, _apbps2_write@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	str	x20, [x0, #8]
	ldr	w0, [x0, #4]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _apbps2_idx@GOTPAGE
Lloh40:
	ldr	x8, [x8, _apbps2_idx@GOTPAGEOFF]
	ldr	w3, [x8]
	add	w9, w3, #1
	str	w9, [x8]
Lloh41:
	adrp	x2, l_.str.6@PAGE
Lloh42:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x3, [x20, #8]
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_info
	ldr	x0, [x20]
	bl	_serio_register_port
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w22, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memory allocation failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_apbps2_isr,4,2                 ; @apbps2_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"apbps2"

l_.str.2:                               ; @.str.2
	.asciz	"request IRQ%d failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"freq"

l_.str.4:                               ; @.str.4
	.asciz	"unable to get core frequency\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SERIO_8042,4,2                 ; @SERIO_8042
	.comm	_apbps2_open,4,2                ; @apbps2_open
	.comm	_apbps2_close,4,2               ; @apbps2_close
	.comm	_apbps2_write,4,2               ; @apbps2_write
l_.str.5:                               ; @.str.5
	.asciz	"APBPS2 PS/2"

l_.str.6:                               ; @.str.6
	.asciz	"apbps2_%d"

	.comm	_apbps2_idx,4,2                 ; @apbps2_idx
l_.str.7:                               ; @.str.7
	.asciz	"irq = %d, base = 0x%p\n"

	.no_dead_strip	_apbps2_of_probe
.subsections_via_symbols
