	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sahara_irq_handler
_sahara_irq_handler:                    ## @sahara_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_SAHARA_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sahara_read
	movl	%eax, %r15d
	movq	_SAHARA_REG_ERRSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sahara_read
	movl	%eax, %r14d
	movq	_SAHARA_CMD_CLEAR_INT@GOTPCREL(%rip), %rax
	movq	_SAHARA_CMD_CLEAR_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_SAHARA_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sahara_write
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_sahara_decode_status
	movl	%r15d, %edi
	callq	_SAHARA_STATUS_GET_STATE
	movq	_SAHARA_STATE_BUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movl	%r15d, %edi
	callq	_SAHARA_STATUS_GET_STATE
	movq	_SAHARA_STATE_COMPLETE@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sahara_decode_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_4:
	movl	%ecx, 4(%rbx)
	movq	%rbx, %rdi
	callq	_complete
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAHARA_REG_STATUS,4,2          ## @SAHARA_REG_STATUS
	.comm	_SAHARA_REG_ERRSTATUS,4,2       ## @SAHARA_REG_ERRSTATUS
	.comm	_SAHARA_CMD_CLEAR_INT,4,2       ## @SAHARA_CMD_CLEAR_INT
	.comm	_SAHARA_CMD_CLEAR_ERR,4,2       ## @SAHARA_CMD_CLEAR_ERR
	.comm	_SAHARA_REG_CMD,4,2             ## @SAHARA_REG_CMD
	.comm	_SAHARA_STATE_BUSY,8,3          ## @SAHARA_STATE_BUSY
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_SAHARA_STATE_COMPLETE,8,3      ## @SAHARA_STATE_COMPLETE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_sahara_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sahara_irq_handler
_sahara_irq_handler:                    ; @sahara_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _SAHARA_REG_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAHARA_REG_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sahara_read
	mov	x21, x0
Lloh3:
	adrp	x8, _SAHARA_REG_ERRSTATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAHARA_REG_ERRSTATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sahara_read
	mov	x20, x0
Lloh6:
	adrp	x8, _SAHARA_CMD_CLEAR_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAHARA_CMD_CLEAR_INT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _SAHARA_CMD_CLEAR_ERR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SAHARA_CMD_CLEAR_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh12:
	adrp	x8, _SAHARA_REG_CMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SAHARA_REG_CMD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sahara_write
	mov	x0, x19
	mov	x1, x21
	bl	_sahara_decode_status
	mov	x0, x21
	bl	_SAHARA_STATUS_GET_STATE
Lloh15:
	adrp	x8, _SAHARA_STATE_BUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SAHARA_STATE_BUSY@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_SAHARA_STATUS_GET_STATE
Lloh20:
	adrp	x8, _SAHARA_STATE_COMPLETE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SAHARA_STATE_COMPLETE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_sahara_decode_error
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_5:
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_complete
Lloh26:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_SAHARA_REG_STATUS,4,2          ; @SAHARA_REG_STATUS
	.comm	_SAHARA_REG_ERRSTATUS,4,2       ; @SAHARA_REG_ERRSTATUS
	.comm	_SAHARA_CMD_CLEAR_INT,4,2       ; @SAHARA_CMD_CLEAR_INT
	.comm	_SAHARA_CMD_CLEAR_ERR,4,2       ; @SAHARA_CMD_CLEAR_ERR
	.comm	_SAHARA_REG_CMD,4,2             ; @SAHARA_REG_CMD
	.comm	_SAHARA_STATE_BUSY,8,3          ; @SAHARA_STATE_BUSY
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_SAHARA_STATE_COMPLETE,8,3      ; @SAHARA_STATE_COMPLETE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_sahara_irq_handler
.subsections_via_symbols
