	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htcpld_handler
_htcpld_handler:                        ## @htcpld_handler
	.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
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	je	LBB0_22
## %bb.2:
	xorl	%r12d, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	cmpq	%rax, %r12
	jae	LBB0_22
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	24(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r12,2), %rbx
	shlq	$4, %rbx
	cmpl	$0, (%r15,%rbx)
	je	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r15,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%r15,%rbx), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rbx), %r14
	addq	$24, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15,%rbx), %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15,%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%r15, %rbx
	addq	$16, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=2
	addq	%r15, %r14
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	%r14d, %edi
	callq	_generic_handle_irq
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_21
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edx
	movl	4(%rbx), %r14d
	movl	$1, %esi
	movl	%r15d, %ecx
	shlq	%cl, %rsi
	btq	%r15, %r13
	jb	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	andl	%esi, %ecx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	testq	%r13, %rsi
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	andl	-48(%rbp), %esi                 ## 4-byte Folded Reload
	testq	%rsi, %rsi
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_19
	jmp	LBB0_20
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	28(%r15,%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_21
LBB0_22:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	movl	$1, %esi
	callq	_gpio_set_value
LBB0_24:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	xorl	%esi, %esi
	callq	_gpio_set_value
	jmp	LBB0_26
LBB0_27:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_26:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htcpld is null in ISR\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
L_.str.1:                               ## @.str.1
	.asciz	"chip %d is null in ISR\n"

L_.str.2:                               ## @.str.2
	.asciz	"client %d is null in ISR\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to read from chip: %d\n"

	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
L_.str.4:                               ## @.str.4
	.asciz	"fire IRQ %d\n"

	.no_dead_strip	_htcpld_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htcpld_handler
_htcpld_handler:                        ; @htcpld_handler
	.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
	cbz	x1, LBB0_25
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_21
; %bb.2:
	mov	x25, #0
	mov	w8, #48
	mov	w27, #1
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x25, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_pr_debug
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	ldr	w8, [x19]
	cmp	x25, x8
	mov	w8, #48
	b.hs	LBB0_21
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x23, [x19, #24]
	cbz	x23, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x21, x25, x8, x23
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w20, #48
	madd	x8, x25, x20, x23
	ldr	x0, [x8, #40]
	cbz	x0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x25, x20, x23
	ldr	w1, [x8, #32]
	bl	_i2c_smbus_read_byte_data
	mov	x2, x0
	tbnz	w0, #31, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w20, w2
	mov	w26, #48
	mov	w8, #48
	madd	x22, x25, x8, x23
	add	x24, x22, #24
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldr	x28, [x22, #8]
	str	x20, [x22, #8]
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, #0
	madd	x9, x25, x26, x23
	add	x26, x9, #16
	add	x23, x9, #20
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=2
Lloh2:
	adrp	x13, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh3:
	ldr	x13, [x13, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh4:
	ldr	w13, [x13]
	tst	w13, w10
	b.eq	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x24, x22, x9
	str	x22, [sp]
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	mov	x0, x24
	bl	_generic_handle_irq
	ldr	w8, [x21]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_5
LBB0_15:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x26]
	ldr	w9, [x23]
	lsl	x11, x27, x22
	and	x12, x11, x28
	and	x11, x11, x20
	cmp	x12, #0
	ccmp	x11, #0, #4, eq
	b.ne	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_15 Depth=2
	cbz	x12, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	cbnz	x11, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=2
Lloh7:
	adrp	x11, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh8:
	ldr	x11, [x11, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_13
	b	LBB0_14
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x25, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x25, x20, x23
	ldr	w0, [x8, #28]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	b	LBB0_5
LBB0_21:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_23
; %bb.22:
	mov	w1, #1
	bl	_gpio_set_value
LBB0_23:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_26
; %bb.24:
	mov	w1, #0
	bl	_gpio_set_value
	b	LBB0_26
LBB0_25:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_26:
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htcpld is null in ISR\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
l_.str.1:                               ; @.str.1
	.asciz	"chip %d is null in ISR\n"

l_.str.2:                               ; @.str.2
	.asciz	"client %d is null in ISR\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to read from chip: %d\n"

	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
l_.str.4:                               ; @.str.4
	.asciz	"fire IRQ %d\n"

	.no_dead_strip	_htcpld_handler
.subsections_via_symbols
