	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs5535_mfgpt_probe
_cs5535_mfgpt_probe:                    ## @cs5535_mfgpt_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%rdi, %r14
	movq	_mfgpt_reset_timers@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$3, %edx
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_2:
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	movl	(%rax), %r12d
	movq	%rax, %rdi
	callq	_resource_size
	movl	4(%r14), %edx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	(%r15), %eax
	movq	_cs5535_mfgpt_chip@GOTPCREL(%rip), %r12
	movl	%eax, 16(%r12)
	movq	%r14, 8(%r12)
	leaq	4(%r12), %rdi
	callq	_spin_lock_init
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r12, %rdi
	callq	_scan_timers
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movl	$1, (%r12)
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_mfgpt_reset_timers,4,2         ## @mfgpt_reset_timers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad mfgpt_reset_timers value: %i\n"

	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
L_.str.1:                               ## @.str.1
	.asciz	"can't fetch device resource info\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't request region\n"

	.comm	_cs5535_mfgpt_chip,24,3         ## @cs5535_mfgpt_chip
L_.str.3:                               ## @.str.3
	.asciz	"reserved resource region %pR\n"

L_.str.4:                               ## @.str.4
	.asciz	"%d MFGPT timers available\n"

	.no_dead_strip	_cs5535_mfgpt_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs5535_mfgpt_probe
_cs5535_mfgpt_probe:                    ; @cs5535_mfgpt_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
Lloh3:
	adrp	x8, _mfgpt_reset_timers@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mfgpt_reset_timers@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lo	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
Lloh8:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	w22, [x0]
	bl	_resource_size
	mov	x1, x0
	ldr	w2, [x19, #4]
	mov	x0, x22
	bl	_request_region
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w8, [x21]
Lloh11:
	adrp	x22, _cs5535_mfgpt_chip@GOTPAGE
Lloh12:
	ldr	x22, [x22, _cs5535_mfgpt_chip@GOTPAGEOFF]
	str	w8, [x22, #16]
	str	x19, [x22, #8]
	add	x0, x22, #4
	bl	_spin_lock_init
	str	x21, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x22
	bl	_scan_timers
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w20, #0
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_8
LBB0_5:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_mfgpt_reset_timers,4,2         ; @mfgpt_reset_timers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad mfgpt_reset_timers value: %i\n"

	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
l_.str.1:                               ; @.str.1
	.asciz	"can't fetch device resource info\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't request region\n"

	.comm	_cs5535_mfgpt_chip,24,3         ; @cs5535_mfgpt_chip
l_.str.3:                               ; @.str.3
	.asciz	"reserved resource region %pR\n"

l_.str.4:                               ; @.str.4
	.asciz	"%d MFGPT timers available\n"

	.no_dead_strip	_cs5535_mfgpt_probe
.subsections_via_symbols
