	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_th_acpi_probe
_intel_th_acpi_probe:                   ## @intel_th_acpi_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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_ACPI_COMPANION
	movq	%rax, %r14
	movq	_TH_MMIO_END@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_intel_th_acpi_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_acpi_match_device
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	(%r12), %r8d
	xorl	%ecx, %ecx
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.2:
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_8
## %bb.3:
	movq	8(%r12), %r10
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rcx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	xorl	%ecx, %ecx
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r10,%rdx,4), %esi
	testl	%esi, %ebx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ecx, %rdi
	incl	%ecx
	movl	%esi, (%r13,%rdi,4)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r8, %rdx
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpl	%r9d, %ecx
	jl	LBB0_4
LBB0_8:
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_intel_th_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_11
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TH_MMIO_END,4,2                ## @TH_MMIO_END
	.comm	_intel_th_acpi_ids,4,2          ## @intel_th_acpi_ids
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.no_dead_strip	_intel_th_acpi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_th_acpi_probe
_intel_th_acpi_probe:                   ; @intel_th_acpi_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
	sub	sp, sp, #16
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x20, x0, #4
	mov	x0, x20
	bl	_ACPI_COMPANION
	mov	x19, x0
Lloh3:
	adrp	x23, _TH_MMIO_END@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TH_MMIO_END@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _intel_th_acpi_ids@GOTPAGE
Lloh8:
	ldr	x8, [x8, _intel_th_acpi_ids@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_acpi_match_device
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	ldr	w9, [x23]
	cmp	w8, #1
	ccmp	w9, #1, #8, ge
	b.ge	LBB0_4
; %bb.2:
	mov	w3, #0
	b	LBB0_9
LBB0_3:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_4:
	mov	x10, #0
	mov	w3, #0
Lloh13:
	adrp	x12, _IORESOURCE_IRQ@GOTPAGE
Lloh14:
	ldr	x12, [x12, _IORESOURCE_IRQ@GOTPAGEOFF]
	ldr	x11, [x22, #8]
Lloh15:
	ldr	w12, [x12]
Lloh16:
	adrp	x13, _IORESOURCE_MEM@GOTPAGE
Lloh17:
	ldr	x13, [x13, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh18:
	ldr	w13, [x13]
	orr	w12, w13, w12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11, x10, lsl #2]
	tst	w12, w13
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w13, [x21, w3, sxtw #2]
	add	w3, w3, #1
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #1
	cmp	x10, x8
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w3, w9
	b.lt	LBB0_5
LBB0_9:
	ldr	x1, [x0]
	mov	x0, x20
	mov	x2, x21
	bl	_intel_th_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_PTR_ERR
	b	LBB0_12
LBB0_11:
	str	x20, [x19]
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #48
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TH_MMIO_END,4,2                ; @TH_MMIO_END
	.comm	_intel_th_acpi_ids,4,2          ; @intel_th_acpi_ids
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.no_dead_strip	_intel_th_acpi_probe
.subsections_via_symbols
