	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elmc_open
_elmc_open:                             ## @elmc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_elmc_id_attn586
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	_IRQF_SAMPLE_RANDOM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	(%rbx), %edi
	movl	4(%rbx), %ecx
	movq	_elmc_interrupt@GOTPCREL(%rip), %rsi
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	xorl	%eax, %eax
	callq	_elmc_id_reset586
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_alloc586
	movq	%rbx, %rdi
	callq	_init586
	movq	%rbx, %rdi
	callq	_startrecv586
	movq	%rbx, %rdi
	callq	_netif_start_queue
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_elmc_interrupt,4,2             ## @elmc_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_IRQF_SAMPLE_RANDOM,4,2         ## @IRQF_SAMPLE_RANDOM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: couldn't get irq %d\n"

	.no_dead_strip	_elmc_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elmc_open
_elmc_open:                             ; @elmc_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_elmc_id_attn586
Lloh0:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IRQF_SAMPLE_RANDOM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQF_SAMPLE_RANDOM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldp	w0, w3, [x19]
Lloh6:
	adrp	x1, _elmc_interrupt@GOTPAGE
Lloh7:
	ldr	x1, [x1, _elmc_interrupt@GOTPAGEOFF]
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldp	w2, w1, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	bl	_elmc_id_reset586
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_alloc586
	mov	x0, x19
	bl	_init586
	mov	x0, x19
	bl	_startrecv586
	mov	x0, x19
	bl	_netif_start_queue
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_elmc_interrupt,4,2             ; @elmc_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_IRQF_SAMPLE_RANDOM,4,2         ; @IRQF_SAMPLE_RANDOM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: couldn't get irq %d\n"

	.no_dead_strip	_elmc_open
.subsections_via_symbols
