	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secocec_irq_handler
_secocec_irq_handler:                   ## @secocec_irq_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rsi), %r14
	movq	_SECOCEC_STATUS_REG_1@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_smb_rd16
	testl	%eax, %eax
	je	LBB0_1
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err_once
	movq	_SECOCEC_STATUS_REG_1_CEC@GOTPCREL(%rip), %rax
	movq	_SECOCEC_STATUS_REG_1_IR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%r12), %edi
	callq	_smb_wr16
LBB0_16:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-48(%rbp), %eax
	movq	_SECOCEC_STATUS_REG_1_CEC@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.3:
	movq	_SECOCEC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_smb_rd16
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movl	-44(%rbp), %esi
	movq	_SECOCEC_STATUS_MSG_RECEIVED_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	callq	_secocec_rx_done
	movl	-44(%rbp), %esi
LBB0_6:
	movq	_SECOCEC_STATUS_MSG_SENT_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%esi, %eax
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	callq	_secocec_tx_done
	movl	-44(%rbp), %esi
	movl	(%r13), %eax
LBB0_8:
	notl	%esi
	testl	%esi, %eax
	je	LBB0_11
## %bb.9:
	movq	_SECOCEC_STATUS_MSG_RECEIVED_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn_once
LBB0_11:
	movl	(%r15), %r15d
	movl	-48(%rbp), %eax
	jmp	LBB0_12
LBB0_2:
	xorl	%r15d, %r15d
LBB0_12:
	movq	_SECOCEC_STATUS_REG_1_IR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_14
## %bb.13:
	orl	%ecx, %r15d
	movq	%rbx, %rdi
	callq	_secocec_ir_rx
LBB0_14:
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_smb_wr16
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_SECOCEC_STATUS_REG_1,4,2       ## @SECOCEC_STATUS_REG_1
	.comm	_SECOCEC_STATUS_REG_1_CEC,4,2   ## @SECOCEC_STATUS_REG_1_CEC
	.comm	_SECOCEC_STATUS,4,2             ## @SECOCEC_STATUS
	.comm	_SECOCEC_STATUS_MSG_RECEIVED_MASK,4,2 ## @SECOCEC_STATUS_MSG_RECEIVED_MASK
	.comm	_SECOCEC_STATUS_MSG_SENT_MASK,4,2 ## @SECOCEC_STATUS_MSG_SENT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Message not received or sent, but interrupt fired"

	.comm	_SECOCEC_STATUS_REG_1_IR,4,2    ## @SECOCEC_STATUS_REG_1_IR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
L_.str.1:                               ## @.str.1
	.asciz	"IRQ: R/W SMBus operation failed (%d)"

	.no_dead_strip	_secocec_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secocec_irq_handler
_secocec_irq_handler:                   ; @secocec_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	ldr	x19, [x1, #8]
Lloh0:
	adrp	x22, _SECOCEC_STATUS_REG_1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SECOCEC_STATUS_REG_1@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #12
	bl	_smb_rd16
	mov	x2, x0
Lloh2:
	adrp	x23, _SECOCEC_STATUS_REG_1_CEC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SECOCEC_STATUS_REG_1_CEC@GOTPAGEOFF]
Lloh4:
	adrp	x24, _SECOCEC_STATUS_REG_1_IR@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SECOCEC_STATUS_REG_1_IR@GOTPAGEOFF]
	cbz	w0, LBB0_3
LBB0_1:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err_once
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	w0, [x22]
	bl	_smb_wr16
LBB0_2:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.4:
Lloh11:
	adrp	x8, _SECOCEC_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SECOCEC_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_smb_rd16
	mov	x2, x0
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	w1, [sp, #8]
Lloh14:
	adrp	x21, _SECOCEC_STATUS_MSG_RECEIVED_MASK@GOTPAGE
Lloh15:
	ldr	x21, [x21, _SECOCEC_STATUS_MSG_RECEIVED_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x20]
	bl	_secocec_rx_done
	ldr	w1, [sp, #8]
LBB0_7:
Lloh16:
	adrp	x25, _SECOCEC_STATUS_MSG_SENT_MASK@GOTPAGE
Lloh17:
	ldr	x25, [x25, _SECOCEC_STATUS_MSG_SENT_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w1
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x20]
	bl	_secocec_tx_done
	ldr	w1, [sp, #8]
	ldr	w8, [x25]
LBB0_9:
	bics	wzr, w8, w1
	b.eq	LBB0_12
; %bb.10:
	mvn	w8, w1
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn_once
LBB0_12:
	ldr	w21, [x23]
	ldr	w8, [sp, #12]
	b	LBB0_14
LBB0_13:
	mov	w21, #0
LBB0_14:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	orr	w21, w9, w21
	mov	x0, x20
	bl	_secocec_ir_rx
LBB0_16:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_smb_wr16
	mov	x2, x0
	cbnz	w0, LBB0_1
	b	LBB0_2
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SECOCEC_STATUS_REG_1,4,2       ; @SECOCEC_STATUS_REG_1
	.comm	_SECOCEC_STATUS_REG_1_CEC,4,2   ; @SECOCEC_STATUS_REG_1_CEC
	.comm	_SECOCEC_STATUS,4,2             ; @SECOCEC_STATUS
	.comm	_SECOCEC_STATUS_MSG_RECEIVED_MASK,4,2 ; @SECOCEC_STATUS_MSG_RECEIVED_MASK
	.comm	_SECOCEC_STATUS_MSG_SENT_MASK,4,2 ; @SECOCEC_STATUS_MSG_SENT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Message not received or sent, but interrupt fired"

	.comm	_SECOCEC_STATUS_REG_1_IR,4,2    ; @SECOCEC_STATUS_REG_1_IR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
l_.str.1:                               ; @.str.1
	.asciz	"IRQ: R/W SMBus operation failed (%d)"

	.no_dead_strip	_secocec_irq_handler
.subsections_via_symbols
