	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_init_irq_chip
_cpcap_init_irq_chip:                   ## @cpcap_init_irq_chip
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, %r13d
	movq	%rdi, %rbx
	movq	_cpcap_irq_chip@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%esi, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rdi
	leaq	(%rdx,%rdi,8), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%r13), %eax
	movslq	%r13d, %r14
	movslq	%eax, %r15
	leaq	(,%r14,4), %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rsi
	addq	%r12, %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_cpcap_init_one_regmap_irq
	incq	%r14
	addq	$4, %r12
	cmpq	%r15, %r14
	jl	LBB0_3
## %bb.4:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	movslq	%r13d, %rax
LBB0_5:
	shlq	$2, %rax
	addq	24(%rbx), %rax
	movq	%rax, 16(%rdx,%rdi,8)
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	%ecx, (%r15)
	movq	%rbx, 8(%rdx,%rdi,8)
	movq	(%rbx), %r14
	movl	16(%rbx), %r12d
	movl	4(%r14), %r13d
	movl	%r13d, %edi
	callq	_irq_get_trigger_type
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	shlq	$2, %rcx
	addq	8(%rbx), %rcx
	movq	%rcx, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	$-1, %r8d
	movq	%r15, %r9
	callq	_devm_regmap_add_irq_chip
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_dev_err
LBB0_7:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpcap_irq_chip,8,3             ## @cpcap_irq_chip
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not add irq chip %i: %i\n"

	.no_dead_strip	_cpcap_init_irq_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_init_irq_chip
_cpcap_init_irq_chip:                   ; @cpcap_init_irq_chip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _cpcap_irq_chip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpcap_irq_chip@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	sxtw	x25, w19
	mov	w8, #24
	smaddl	x21, w1, w8, x24
	cmp	w3, #0
	b.le	LBB0_4
; %bb.1:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x27, #0
	mov	x8, x2
	sxtw	x26, w8
	add	w9, w22, w2
	sxtw	x28, w9
	sbfiz	x21, x8, #2, #32
	mov	w23, w2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x1, x8, x21
	add	w3, w23, w27
	mov	x0, x20
	mov	x2, x23
	bl	_cpcap_init_one_regmap_irq
	add	x27, x27, #1
	add	x21, x21, #4
	add	x8, x26, x27
	cmp	x8, x28
	b.lt	LBB0_2
; %bb.3:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_5
LBB0_4:
	sxtw	x26, w2
LBB0_5:
	ldr	x8, [x20, #24]
	add	x8, x8, x26, lsl #2
	mov	w9, #24
	madd	x9, x25, x9, x24
	str	w22, [x21]
	stp	x20, x8, [x9, #8]
	ldr	x22, [x20]
	ldr	w23, [x20, #16]
	ldr	w24, [x22, #4]
	mov	x0, x24
	bl	_irq_get_trigger_type
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	x8, [x20, #8]
	add	x6, x8, x25, lsl #2
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	w4, #-1
	mov	x5, x21
	bl	_devm_regmap_add_irq_chip
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cpcap_irq_chip,8,3             ; @cpcap_irq_chip
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not add irq chip %i: %i\n"

	.no_dead_strip	_cpcap_init_irq_chip
.subsections_via_symbols
