	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmfe_open
_dmfe_open:                             ## @dmfe_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	88(%rax), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_DMFE_DBUG
	movq	_dmfe_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movl	%ebx, %edi
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_CR6_DEFAULT@GOTPCREL(%rip), %rcx
	movq	_dmfe_cr6_user_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r12)
	movups	%xmm0, 48(%r12)
	movq	$0, 80(%r12)
	movabsq	$2061584302095, %rcx            ## imm = 0x1E00000000F
	movq	%rcx, 4(%r12)
	movq	_chkmode@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	16(%r12), %rcx
	movq	_PCI_DM9132_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	cmpl	$48, 24(%r12)
	jl	LBB0_5
LBB0_4:
	movq	_DMFE_TXTH_256@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movq	_CR0_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$4, %eax
LBB0_6:
	movq	%rcx, 40(%r12)
	movl	%eax, 28(%r12)
	movq	%r14, %rdi
	callq	_dmfe_init_dm910x
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movq	%r12, %rbx
	addq	$32, %rbx
	movq	_dmfe_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_DMFE_TIMER_WUT@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rcx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 32(%r12)
	movq	%rbx, %rdi
	callq	_add_timer
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CR6_SFT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movl	$1, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmfe_open"

	.comm	_dmfe_interrupt,4,2             ## @dmfe_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_CR6_DEFAULT,4,2                ## @CR6_DEFAULT
	.comm	_dmfe_cr6_user_set,4,2          ## @dmfe_cr6_user_set
	.comm	_chkmode,4,2                    ## @chkmode
	.comm	_PCI_DM9132_ID,8,3              ## @PCI_DM9132_ID
	.comm	_DMFE_TXTH_256,4,2              ## @DMFE_TXTH_256
	.comm	_CR0_DEFAULT,8,3                ## @CR0_DEFAULT
	.comm	_CR6_SFT,4,2                    ## @CR6_SFT
	.comm	_dmfe_timer,4,2                 ## @dmfe_timer
	.comm	_DMFE_TIMER_WUT,8,3             ## @DMFE_TIMER_WUT
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_dmfe_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dmfe_open
lCPI0_0:
	.long	15                              ; 0xf
	.long	480                             ; 0x1e0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dmfe_open:                             ; @dmfe_open
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #88]
	ldr	w21, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	w2, #0
	bl	_DMFE_DBUG
Lloh2:
	adrp	x8, _dmfe_interrupt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dmfe_interrupt@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x21
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
Lloh8:
	adrp	x8, _CR6_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CR6_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _dmfe_cr6_user_set@GOTPAGE
Lloh12:
	ldr	x9, [x9, _dmfe_cr6_user_set@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #48]
	str	xzr, [x19, #80]
Lloh14:
	adrp	x9, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
Lloh16:
	adrp	x9, _chkmode@GOTPAGE
Lloh17:
	ldr	x9, [x9, _chkmode@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cbz	w9, LBB0_4
; %bb.2:
	ldr	x9, [x19, #16]
Lloh19:
	adrp	x10, _PCI_DM9132_ID@GOTPAGE
Lloh20:
	ldr	x10, [x10, _PCI_DM9132_ID@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x19, #24]
	cmp	w9, #48
	b.lt	LBB0_7
LBB0_4:
Lloh22:
	adrp	x9, _DMFE_TXTH_256@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DMFE_TXTH_256@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh25:
	adrp	x8, _CR0_DEFAULT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CR0_DEFAULT@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x8]
	mov	w8, #4
LBB0_5:
	str	x9, [x19, #40]
	str	w8, [x19, #28]
	mov	x0, x20
	bl	_dmfe_init_dm910x
	mov	x0, x20
	bl	_netif_wake_queue
	add	x20, x19, #32
Lloh28:
	adrp	x8, _dmfe_timer@GOTPAGE
Lloh29:
	ldr	x8, [x8, _dmfe_timer@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
Lloh31:
	adrp	x8, _DMFE_TIMER_WUT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DMFE_TIMER_WUT@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _HZ@GOTPAGE
Lloh35:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh36:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #1
	str	x8, [x19, #32]
	mov	x0, x20
	bl	_add_timer
LBB0_6:
	mov	x0, x21
	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
LBB0_7:
	mov	x9, #0
Lloh37:
	adrp	x10, _CR6_SFT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _CR6_SFT@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x19]
	mov	w8, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmfe_open"

	.comm	_dmfe_interrupt,4,2             ; @dmfe_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_CR6_DEFAULT,4,2                ; @CR6_DEFAULT
	.comm	_dmfe_cr6_user_set,4,2          ; @dmfe_cr6_user_set
	.comm	_chkmode,4,2                    ; @chkmode
	.comm	_PCI_DM9132_ID,8,3              ; @PCI_DM9132_ID
	.comm	_DMFE_TXTH_256,4,2              ; @DMFE_TXTH_256
	.comm	_CR0_DEFAULT,8,3                ; @CR0_DEFAULT
	.comm	_CR6_SFT,4,2                    ; @CR6_SFT
	.comm	_dmfe_timer,4,2                 ; @dmfe_timer
	.comm	_DMFE_TIMER_WUT,8,3             ; @DMFE_TIMER_WUT
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_dmfe_open
.subsections_via_symbols
