	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_irq_enable              ## -- Begin function mt753x_irq_enable
	.p2align	4, 0x90
_mt753x_irq_enable:                     ## @mt753x_irq_enable
	.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, %r14
	movq	_MT753X_NUM_PHYS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	testl	%edi, %edi
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_MII_BMSR@GOTPCREL(%rip), %r12
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r15), %edi
	cmpl	%edi, %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	*(%r14)
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, 8(%r14)
	jmp	LBB0_4
LBB0_5:
	callq	_BIT
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	movq	_SYS_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt753x_reg_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT753X_NUM_PHYS,4,2            ## @MT753X_NUM_PHYS
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
	.comm	_SYS_INT_EN,4,2                 ## @SYS_INT_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_irq_enable              ; -- Begin function mt753x_irq_enable
	.p2align	2
_mt753x_irq_enable:                     ; @mt753x_irq_enable
	.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	x21, _MT753X_NUM_PHYS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MT753X_NUM_PHYS@GOTPAGEOFF]
	ldr	w0, [x21]
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w20, #0
Lloh2:
	adrp	x22, _MII_BMSR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MII_BMSR@GOTPAGEOFF]
Lloh4:
	adrp	x23, _BMSR_LSTATUS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BMSR_LSTATUS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	w0, [x21]
	cmp	w20, w0
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_BIT
	ldr	w8, [x19, #8]
	orr	w8, w8, w0
	str	w8, [x19, #8]
	b	LBB0_2
LBB0_5:
	bl	_BIT
	sub	w2, w0, #1
Lloh6:
	adrp	x8, _SYS_INT_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYS_INT_EN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_mt753x_reg_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MT753X_NUM_PHYS,4,2            ; @MT753X_NUM_PHYS
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
	.comm	_SYS_INT_EN,4,2                 ; @SYS_INT_EN
.subsections_via_symbols
