	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_devices_init
_stmpe_devices_init:                    ## @stmpe_devices_init
	.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
	movq	8(%rdi), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	movl	(%rax), %r15d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.1:
	xorl	%r12d, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%rbx), %rcx
	leaq	(%r12,%r12,2), %rdx
	movl	(%rcx,%rdx,8), %r14d
	testl	%r15d, %r14d
	je	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx,%rdx,8), %rsi
	movl	(%rsi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rsi), %rax
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	leaq	(%rcx,%rdx,8), %r9
	addq	$16, %r9
	cmpl	$1, %r8d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r8b
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%edi, (%rax,%rcx,4)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r9), %rdx
	addq	%rcx, %rdx
	movq	%rdx, 8(%rax,%rcx,4)
	movq	%rdx, 16(%rax,%rcx,4)
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_stmpe_add_device
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	notl	%r14d
	andl	%r14d, %r15d
	movl	(%rbx), %eax
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %ebx
	andl	$-2, %ebx
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	$2, %rcx
	cmpq	%rcx, %rbx
	je	LBB0_12
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%edi, (%rax,%rcx,4)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r9), %rdx
	addq	%rcx, %rdx
	movq	%rdx, 8(%rax,%rcx,4)
	movq	%rdx, 16(%rax,%rcx,4)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	testl	%edi, 4(%rax,%rcx,4)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r9), %rdx
	addq	%rcx, %rdx
	incq	%rdx
	movq	%rdx, 12(%rax,%rcx,4)
	movq	%rdx, 20(%rax,%rcx,4)
	jmp	LBB0_11
LBB0_19:
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
	jmp	LBB0_21
LBB0_16:
	movl	%eax, %r13d
LBB0_21:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"platform wants blocks (%#x) not present on variant"

	.no_dead_strip	_stmpe_devices_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_devices_init
_stmpe_devices_init:                    ; @stmpe_devices_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldp	x8, x22, [x0, #8]
	ldr	w19, [x8]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, #0
	mov	w24, #24
Lloh3:
	adrp	x25, _IORESOURCE_IRQ@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IORESOURCE_IRQ@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_stmpe_add_device
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	bic	w19, w19, w26
	ldr	w8, [x22]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x11, [x22, #8]
	mul	x9, x23, x24
	ldr	w26, [x11, x9]
	tst	w26, w19
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x23, x24, x11
	ldr	x1, [x8, #8]
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, #0
	ldr	x12, [x1, #8]
	ldr	w10, [x25]
	madd	x11, x23, x24, x11
	add	x11, x11, #16
	add	x12, x12, #16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x9, x9, #1
	add	x12, x12, #4
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w13, [x12, #-16]
	tst	w10, w13
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x13, [x11]
	add	x13, x9, x13
	stp	x13, x13, [x12, #-8]
	b	LBB0_8
LBB0_11:
	cbz	w19, LBB0_13
; %bb.12:
	ldr	w0, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
LBB0_13:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"platform wants blocks (%#x) not present on variant"

	.no_dead_strip	_stmpe_devices_init
.subsections_via_symbols
