	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ene_irq_status
_ene_irq_status:                        ## @ene_irq_status
	.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	%rdi, %rbx
	movq	_ENE_FW2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ene_read_reg
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	_ENE_HW_C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.1:
	movq	_ENEB_IRQ_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ene_read_reg
	movq	_ENEB_IRQ_STATUS_IR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_7
## %bb.2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ene_clear_reg_mask
	movq	_ENE_IRQ_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_3:
	movq	_ENE_IRQ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ene_read_reg
	movq	_ENE_IRQ_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%eax, %edx
	je	LBB0_7
## %bb.4:
	movl	%eax, %r14d
	movl	(%r13), %esi
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	callq	_ene_write_reg
	movl	(%r13), %esi
	movl	(%r12), %edx
	notl	%edx
	andl	%r14d, %edx
	movq	%rbx, %rdi
	callq	_ene_write_reg
	movq	_ENE_FW2_RXIRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_8
## %bb.5:
	movq	_ENE_IRQ_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_ENE_FW2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%eax
	andl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ene_write_reg
	jmp	LBB0_9
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	_ENE_FW1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ene_read_reg
	movq	_ENE_FW1_TXIRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_11
## %bb.10:
	movl	(%r15), %esi
	notl	%ecx
	andl	%ecx, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ene_write_reg
	movq	_ENE_IRQ_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENE_FW2,4,2                    ## @ENE_FW2
	.comm	_ENE_HW_C,8,3                   ## @ENE_HW_C
	.comm	_ENEB_IRQ_STATUS,4,2            ## @ENEB_IRQ_STATUS
	.comm	_ENEB_IRQ_STATUS_IR,4,2         ## @ENEB_IRQ_STATUS_IR
	.comm	_ENE_IRQ_RX,4,2                 ## @ENE_IRQ_RX
	.comm	_ENE_IRQ,4,2                    ## @ENE_IRQ
	.comm	_ENE_IRQ_STATUS,4,2             ## @ENE_IRQ_STATUS
	.comm	_ENE_FW2_RXIRQ,4,2              ## @ENE_FW2_RXIRQ
	.comm	_ENE_FW1,4,2                    ## @ENE_FW1
	.comm	_ENE_FW1_TXIRQ,4,2              ## @ENE_FW1_TXIRQ
	.comm	_ENE_IRQ_TX,4,2                 ## @ENE_IRQ_TX
	.no_dead_strip	_ene_irq_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ene_irq_status
_ene_irq_status:                        ; @ene_irq_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _ENE_FW2@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ENE_FW2@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ene_read_reg
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _ENE_HW_C@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ENE_HW_C@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
Lloh5:
	adrp	x20, _ENEB_IRQ_STATUS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ENEB_IRQ_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ene_read_reg
Lloh7:
	adrp	x8, _ENEB_IRQ_STATUS_IR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENEB_IRQ_STATUS_IR@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	tst	w2, w0
	b.eq	LBB0_6
; %bb.2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ene_clear_reg_mask
Lloh10:
	adrp	x8, _ENE_IRQ_RX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENE_IRQ_RX@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_3:
	mov	x21, x0
Lloh13:
	adrp	x23, _ENE_IRQ@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ENE_IRQ@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ene_read_reg
Lloh15:
	adrp	x24, _ENE_IRQ_STATUS@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ENE_IRQ_STATUS@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	mov	x20, x0
	ldr	w1, [x23]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_ene_write_reg
	ldr	w1, [x23]
	ldr	w8, [x24]
	bic	w2, w20, w8
	mov	x0, x19
	bl	_ene_write_reg
Lloh17:
	adrp	x8, _ENE_FW2_RXIRQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENE_FW2_RXIRQ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
Lloh20:
	adrp	x9, _ENE_IRQ_RX@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ENE_IRQ_RX@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x9]
	ldr	w1, [x22]
	bic	w2, w21, w8
	mov	x0, x19
	bl	_ene_write_reg
	b	LBB0_8
LBB0_6:
	mov	w20, #0
	b	LBB0_10
LBB0_7:
	mov	w20, #0
LBB0_8:
Lloh23:
	adrp	x21, _ENE_FW1@GOTPAGE
Lloh24:
	ldr	x21, [x21, _ENE_FW1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ene_read_reg
Lloh25:
	adrp	x8, _ENE_FW1_TXIRQ@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENE_FW1_TXIRQ@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
	ldr	w1, [x21]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_ene_write_reg
Lloh28:
	adrp	x8, _ENE_IRQ_TX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENE_IRQ_TX@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENE_FW2,4,2                    ; @ENE_FW2
	.comm	_ENE_HW_C,8,3                   ; @ENE_HW_C
	.comm	_ENEB_IRQ_STATUS,4,2            ; @ENEB_IRQ_STATUS
	.comm	_ENEB_IRQ_STATUS_IR,4,2         ; @ENEB_IRQ_STATUS_IR
	.comm	_ENE_IRQ_RX,4,2                 ; @ENE_IRQ_RX
	.comm	_ENE_IRQ,4,2                    ; @ENE_IRQ
	.comm	_ENE_IRQ_STATUS,4,2             ; @ENE_IRQ_STATUS
	.comm	_ENE_FW2_RXIRQ,4,2              ; @ENE_FW2_RXIRQ
	.comm	_ENE_FW1,4,2                    ; @ENE_FW1
	.comm	_ENE_FW1_TXIRQ,4,2              ; @ENE_FW1_TXIRQ
	.comm	_ENE_IRQ_TX,4,2                 ; @ENE_IRQ_TX
	.no_dead_strip	_ene_irq_status
.subsections_via_symbols
