	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_find
_nic_find:                              ## @nic_find
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_nic_reset
	movq	%r15, %rdi
	movl	$240, %esi
	callq	_nic_write_byte
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rax
	btsq	%r13, %rax
	btrq	%r13, %r12
	testl	%ebx, %ebx
	cmovneq	%rax, %r12
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nic_write_bit
	incq	%r13
	cmpq	$64, %r13
	je	LBB0_13
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_nic_read_bit
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_nic_read_bit
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	jne	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	%ebx, %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpq	%rax, %r13
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %ebx
	movl	%r13d, %ecx
	shlq	%cl, %rbx
	btsq	%r13, %r12
	andl	%r12d, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cltq
	movl	$1, %ebx
	movl	%r13d, %ecx
	shlq	%cl, %rbx
	cmpq	%rax, %r13
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rax
	notq	%rax
	andq	%rax, %r12
	movl	%r13d, %r14d
	andl	%r12d, %ebx
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%rbx, %r12
	cmovel	%r13d, %r14d
	andl	%r12d, %ebx
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_printk
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NIC search failed (not fatal).\n"

	.no_dead_strip	_nic_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_find
_nic_find:                              ; @nic_find
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_nic_reset
	mov	x0, x20
	mov	w1, #240
	bl	_nic_write_byte
	mov	x24, #0
	mov	x21, #0
	mov	w23, #0
	mov	w25, #1
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	x8, x25, x24
	orr	x9, x21, x8
	bic	x8, x21, x8
	cmp	w22, #0
	csel	x21, x9, x8, ne
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_nic_write_bit
	add	x24, x24, #1
	cmp	x24, #64
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_nic_read_bit
	mov	x22, x0
	mov	x0, x20
	bl	_nic_read_bit
	cbz	w22, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w0, LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	orr	w8, w22, w0
	cbnz	w8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	sxtw	x9, w8
	lsl	x10, x25, x24
	tst	x21, x10
	csel	w11, w24, w23, eq
	bic	x12, x21, x10
	cmp	x24, x9
	csel	x9, x21, x12, le
	csel	w11, w11, w24, le
	lsl	x12, x25, x24
	orr	x13, x21, x12
	cmp	x24, x8
	csel	x8, x10, x12, ne
	csel	w23, w11, w23, ne
	csel	x21, x9, x13, ne
	and	w22, w21, w8
	b	LBB0_2
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	mov	w23, #0
	mov	x21, #0
LBB0_8:
	str	w23, [x19]
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NIC search failed (not fatal).\n"

	.no_dead_strip	_nic_find
.subsections_via_symbols
