	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epit_probe
_epit_probe:                            ## @epit_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_ofw_bus_status_okay
	movq	_ENXIO@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	%ebx, %edi
	callq	_device_get_unit
	movl	%eax, %r14d
	movq	_compat_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ofw_bus_search_compatible
	cmpl	(%rax), %r14d
	jge	LBB0_2
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_set_desc
	movq	_BUS_PROBE_DEFAULT@GOTPCREL(%rip), %r13
	jmp	LBB0_10
LBB0_2:
	movl	%ebx, %edi
	callq	_ofw_bus_get_name
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	$0, -44(%rbp)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_RF_UNMAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	callq	_bus_alloc_resource_any
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_rman_get_start
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %esi
	movl	%ebx, %edi
	movq	%r12, %rdx
	callq	_bus_free_resource
	xorl	%eax, %eax
	callq	_imx_soc_family
	cmpl	$6, %eax
	jne	LBB0_8
## %bb.5:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%r14d, %r14d
	jg	LBB0_10
## %bb.6:
	movq	_imx6_epit_ioaddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	cmpq	(%rax,%rcx,8), %rdx
	je	LBB0_7
	jmp	LBB0_10
LBB0_8:
	cmpl	$1, %r14d
	jg	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_imx_soc_type
LBB0_10:
	movl	(%r13), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_compat_data,4,2                ## @compat_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i.MX EPIT timer"

	.comm	_BUS_PROBE_DEFAULT,4,2          ## @BUS_PROBE_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"epit"

	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_UNMAPPED,4,2                ## @RF_UNMAPPED
	.comm	_imx6_epit_ioaddr,8,3           ## @imx6_epit_ioaddr
	.comm	_imx51_epit_ioaddr,8,3          ## @imx51_epit_ioaddr
	.comm	_imx53_epit_ioaddr,8,3          ## @imx53_epit_ioaddr
	.no_dead_strip	_epit_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epit_probe
_epit_probe:                            ; @epit_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
	bl	_ofw_bus_status_okay
	cbz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_device_get_unit
	mov	x20, x0
Lloh0:
	adrp	x8, _compat_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _compat_data@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ofw_bus_search_compatible
	ldr	w8, [x0]
	cmp	w20, w8
	b.ge	LBB0_3
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_set_desc
Lloh5:
	adrp	x8, _BUS_PROBE_DEFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUS_PROBE_DEFAULT@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	mov	x0, x19
	bl	_ofw_bus_get_name
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_10
; %bb.4:
	str	wzr, [sp, #12]
Lloh9:
	adrp	x23, _SYS_RES_MEMORY@GOTPAGE
Lloh10:
	ldr	x23, [x23, _SYS_RES_MEMORY@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh11:
	adrp	x8, _RF_UNMAPPED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RF_UNMAPPED@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_bus_alloc_resource_any
	cbz	x0, LBB0_10
; %bb.5:
	mov	x22, x0
	bl	_rman_get_start
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_bus_free_resource
	bl	_imx_soc_family
	cmp	w0, #6
	b.ne	LBB0_8
; %bb.6:
	cmp	w20, #0
	b.gt	LBB0_10
; %bb.7:
Lloh14:
	adrp	x8, _imx6_epit_ioaddr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _imx6_epit_ioaddr@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, sxtw #3]
	cmp	x21, x8
	b.eq	LBB0_2
	b	LBB0_10
LBB0_8:
	cmp	w20, #1
	b.gt	LBB0_10
; %bb.9:
	bl	_imx_soc_type
LBB0_10:
Lloh17:
	adrp	x8, _ENXIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_compat_data,4,2                ; @compat_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i.MX EPIT timer"

	.comm	_BUS_PROBE_DEFAULT,4,2          ; @BUS_PROBE_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"epit"

	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_UNMAPPED,4,2                ; @RF_UNMAPPED
	.comm	_imx6_epit_ioaddr,8,3           ; @imx6_epit_ioaddr
	.comm	_imx51_epit_ioaddr,8,3          ; @imx51_epit_ioaddr
	.comm	_imx53_epit_ioaddr,8,3          ; @imx53_epit_ioaddr
	.no_dead_strip	_epit_probe
.subsections_via_symbols
