	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_nci_irq_thread_fn
_st_nci_irq_thread_fn:                  ## @st_nci_irq_thread_fn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, (%rsi)
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_3
## %bb.4:
	addq	$4, %rax
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	cmpq	$0, 8(%rax)
	jne	LBB0_11
## %bb.5:
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.7:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_st_nci_spi_read
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_11
## %bb.8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_11
## %bb.9:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_11
## %bb.10:
	movq	(%rbx), %rdi
	movq	-24(%rbp), %rsi
	callq	_ndlc_recv
	jmp	LBB0_11
LBB0_3:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_11:
	movl	(%r14), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	callq	_st_nci_spi_disable
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.no_dead_strip	_st_nci_irq_thread_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_nci_irq_thread_fn
_st_nci_irq_thread_fn:                  ; @st_nci_irq_thread_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	xzr, [sp, #8]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cmp	w9, w0
	b.ne	LBB0_5
; %bb.3:
	add	x0, x8, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON_ONCE
Lloh4:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.8:
	add	x1, sp, #8
	mov	x0, x19
	bl	_st_nci_spi_read
Lloh6:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.9:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.10:
Lloh12:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.11:
	ldr	x0, [x19]
	ldr	x1, [sp, #8]
	bl	_ndlc_recv
	b	LBB0_4
LBB0_12:
	mov	x0, x19
	bl	_st_nci_spi_disable
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.no_dead_strip	_st_nci_irq_thread_fn
.subsections_via_symbols
