	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_init
_nic_init:                              ## @nic_init
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -84(%rbp)
	leaq	-84(%rbp), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nic_find
	movl	%eax, %ebx
	cmpb	$-111, %bl
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -84(%rbp)
	jne	LBB0_1
## %bb.6:
	movl	$-1, %r14d
	jmp	LBB0_7
LBB0_2:
	movq	%r14, %rdi
	callq	_nic_reset
	movq	%r14, %rdi
	movl	$85, %esi
	callq	_nic_write_byte
	movq	%r14, %rdi
	movl	$145, %esi
	callq	_nic_write_byte
	movzbl	%bh, %esi
	movq	%r14, %rdi
	movl	%esi, %r12d
	callq	_nic_write_byte
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_nic_write_byte
	movl	%ebx, %esi
	shrl	$24, %esi
	movq	%r14, %rdi
	movl	%esi, %r13d
	callq	_nic_write_byte
	movq	%r14, %rdi
	callq	_nic_write_byte
	movq	%r14, %rdi
	callq	_nic_write_byte
	movq	%r14, %rdi
	callq	_nic_write_byte
	movq	%r14, %rdi
	callq	_nic_write_byte
	movl	%r12d, -80(%rbp)
	movl	%r15d, -76(%rbp)
	movl	%r13d, -72(%rbp)
	sarl	$31, %ebx
	movzbl	%bl, %ebx
	movl	%ebx, -68(%rbp)
	movl	%ebx, -64(%rbp)
	movl	%ebx, -60(%rbp)
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printk
	leaq	L_.str(%rip), %rax
	cmpq	%rax, %r15
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	leaq	-80(%rbp), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printk
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown"

L_.str.1:                               ## @.str.1
	.asciz	"DS1981U"

L_.str.2:                               ## @.str.2
	.asciz	"Found %s NIC"

L_.str.3:                               ## @.str.3
	.asciz	" registration number %pM, CRC %02x"

L_.str.4:                               ## @.str.4
	.asciz	".\n"

	.no_dead_strip	_nic_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_init
_nic_init:                              ; @nic_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	wzr, [sp, #28]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #28
	mov	x0, x19
	bl	_nic_find
	and	w8, w0, #0xff
	cmp	w8, #145
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_1
; %bb.3:
	mov	w0, #-1
	b	LBB0_7
LBB0_4:
	mov	x20, x0
	mov	x0, x19
	bl	_nic_reset
	mov	x0, x19
	mov	w1, #85
	bl	_nic_write_byte
	mov	x0, x19
	mov	w1, #145
	bl	_nic_write_byte
	ubfx	w21, w20, #8, #8
	mov	x0, x19
	mov	x1, x21
	bl	_nic_write_byte
	ubfx	w22, w20, #16, #8
	mov	x0, x19
	mov	x1, x22
	bl	_nic_write_byte
	lsr	w23, w20, #24
	mov	x0, x19
	mov	x1, x23
	bl	_nic_write_byte
	mov	x0, x19
	bl	_nic_write_byte
	mov	x0, x19
	bl	_nic_write_byte
	mov	x0, x19
	bl	_nic_write_byte
	mov	x0, x19
	bl	_nic_write_byte
	stp	w21, w22, [sp, #32]
	asr	w8, w20, #31
	and	w19, w8, #0xff
	stp	w23, w19, [sp, #40]
	stp	w19, w19, [sp, #48]
Lloh3:
	adrp	x20, l_.str.1@PAGE
Lloh4:
	add	x20, x20, l_.str.1@PAGEOFF
	str	x20, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
Lloh7:
	adrp	x8, l_.str@PAGE
Lloh8:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.5:
	add	x8, sp, #32
	stp	x8, x19, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
LBB0_6:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printk
	mov	w0, #0
LBB0_7:
	ldr	x8, [sp, #56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown"

l_.str.1:                               ; @.str.1
	.asciz	"DS1981U"

l_.str.2:                               ; @.str.2
	.asciz	"Found %s NIC"

l_.str.3:                               ; @.str.3
	.asciz	" registration number %pM, CRC %02x"

l_.str.4:                               ; @.str.4
	.asciz	".\n"

	.no_dead_strip	_nic_init
.subsections_via_symbols
