	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linkaddr_string                ## -- Begin function linkaddr_string
	.p2align	4, 0x90
_linkaddr_string:                       ## @linkaddr_string
	.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
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_LINKADDR_ETHER@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.16:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_etheraddr_string               ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	movq	_LINKADDR_FRELAY@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_5
## %bb.17:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_q922_string                    ## TAILCALL
LBB0_5:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_lookup_bytestring
	movq	%rax, %r14
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:
	leal	(%r15,%r15,2), %edi
	callq	_malloc
	movq	%rax, %r12
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	*(%r13)
LBB0_8:
	movq	_hex@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rbx), %edx
	sarl	$4, %edx
	movslq	%edx, %rdx
	movb	(%rcx,%rdx,8), %cl
	movb	%cl, (%r12)
	movq	(%rax), %rcx
	movl	(%rbx), %edx
	andl	$15, %edx
	movb	(%rcx,%rdx,8), %dl
	leaq	2(%r12), %rcx
	movb	%dl, 1(%r12)
	movl	%r15d, %edx
	decl	%edx
	je	LBB0_14
## %bb.9:
	testb	$1, %dl
	je	LBB0_11
## %bb.10:
	movb	$58, 2(%r12)
	movq	(%rax), %rcx
	movl	4(%rbx), %edx
	sarl	$4, %edx
	movslq	%edx, %rdx
	movb	(%rcx,%rdx,8), %cl
	movb	%cl, 3(%r12)
	movl	4(%rbx), %ecx
	addq	$4, %rbx
	movq	(%rax), %rdx
	andl	$15, %ecx
	movb	(%rdx,%rcx,8), %dl
	movq	%r12, %rcx
	addq	$5, %rcx
	movb	%dl, 4(%r12)
	leal	-2(%r15), %edx
LBB0_11:
	cmpl	$2, %r15d
	je	LBB0_14
## %bb.12:
	movl	%edx, %r8d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movb	$58, (%rcx)
	movq	(%rax), %rdi
	movl	4(%rbx,%rsi,4), %edx
	sarl	$4, %edx
	movslq	%edx, %rdx
	movzbl	(%rdi,%rdx,8), %edx
	movb	%dl, 1(%rcx)
	movq	(%rax), %rdx
	movl	4(%rbx,%rsi,4), %edi
	andl	$15, %edi
	movzbl	(%rdx,%rdi,8), %edx
	movb	%dl, 2(%rcx)
	movb	$58, 3(%rcx)
	movq	(%rax), %rdx
	movl	8(%rbx,%rsi,4), %edi
	sarl	$4, %edi
	movslq	%edi, %rdi
	movzbl	(%rdx,%rdi,8), %edx
	movb	%dl, 4(%rcx)
	movq	(%rax), %rdx
	movl	8(%rbx,%rsi,4), %edi
	andl	$15, %edi
	movzbl	(%rdx,%rdi,8), %edx
	movb	%dl, 5(%rcx)
	addq	$6, %rcx
	addq	$2, %rsi
	cmpl	%esi, %r8d
	jne	LBB0_13
LBB0_14:
	movb	$0, (%rcx)
	movq	(%r14), %rax
LBB0_15:
	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	"<empty>"

	.comm	_LINKADDR_ETHER,4,2             ## @LINKADDR_ETHER
	.comm	_ETHER_ADDR_LEN,4,2             ## @ETHER_ADDR_LEN
	.comm	_LINKADDR_FRELAY,4,2            ## @LINKADDR_FRELAY
L_.str.1:                               ## @.str.1
	.asciz	"linkaddr_string: malloc"

	.comm	_hex,8,3                        ## @hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linkaddr_string                ; -- Begin function linkaddr_string
	.p2align	2
_linkaddr_string:                       ; @linkaddr_string
	.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
	cbz	w3, LBB0_4
; %bb.1:
	mov	x21, x3
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _LINKADDR_ETHER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINKADDR_ETHER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETHER_ADDR_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETHER_ADDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w3, #0, eq
	b.eq	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _LINKADDR_FRELAY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LINKADDR_FRELAY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	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	_q922_string
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_5:
	mov	x0, x22
	mov	x1, x20
	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	_etheraddr_string
LBB0_6:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_lookup_bytestring
	mov	x19, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_14
; %bb.7:
	add	w0, w21, w21, lsl #1
	bl	_malloc
	mov	x23, x0
	str	x0, [x19]
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x22]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	blr	x8
LBB0_9:
Lloh13:
	adrp	x8, _hex@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hex@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	w10, [x20]
	asr	w10, w10, #4
	ldr	x9, [x9, w10, sxtw #3]
	strb	w9, [x23]
	ldr	x9, [x8]
	ldr	w10, [x20]
	and	x10, x10, #0xf
	ldr	x10, [x9, x10, lsl #3]
	add	x9, x23, #2
	strb	w10, [x23, #1]
	subs	w10, w21, #1
	b.eq	LBB0_13
; %bb.10:
	add	x11, x20, #4
	mov	w12, #58
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	strb	w12, [x9]
	ldr	x13, [x8]
	ldr	w14, [x11]
	asr	w14, w14, #4
	ldr	x13, [x13, w14, sxtw #3]
	strb	w13, [x9, #1]
	ldr	x13, [x8]
	ldr	w14, [x11], #4
	and	x14, x14, #0xf
	ldr	x14, [x13, x14, lsl #3]
	add	x13, x9, #3
	strb	w14, [x9, #2]
	mov	x9, x13
	subs	w10, w10, #1
	b.ne	LBB0_11
; %bb.12:
	mov	x9, x13
LBB0_13:
	strb	wzr, [x9]
	ldr	x0, [x19]
LBB0_14:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<empty>"

	.comm	_LINKADDR_ETHER,4,2             ; @LINKADDR_ETHER
	.comm	_ETHER_ADDR_LEN,4,2             ; @ETHER_ADDR_LEN
	.comm	_LINKADDR_FRELAY,4,2            ; @LINKADDR_FRELAY
l_.str.1:                               ; @.str.1
	.asciz	"linkaddr_string: malloc"

	.comm	_hex,8,3                        ; @hex
.subsections_via_symbols
