	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isonsap_string                 ## -- Begin function isonsap_string
	.p2align	4, 0x90
_isonsap_string:                        ## @isonsap_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
	leaq	L_.str(%rip), %rax
	testl	%edx, %edx
	jle	LBB0_11
## %bb.1:
	movl	%edx, %r14d
	movq	_ISONSAP_MAX_LENGTH@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jl	LBB0_11
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	%r14d, %edx
	callq	_lookup_nsap
	movq	%rax, %r15
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movl	$51, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	*(%r13)
LBB0_5:
	movl	%r14d, %r8d
	xorl	%ecx, %ecx
	movq	_hex@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpl	%ecx, %r8d
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	movq	(%rdx), %rdi
	movl	(%r12,%rcx,4), %ebx
	sarl	$4, %ebx
	movslq	%ebx, %rbx
	movzbl	(%rdi,%rbx,8), %ebx
	movb	%bl, (%rsi)
	movq	(%rdx), %rdi
	movl	(%r12,%rcx,4), %ebx
	andl	$15, %ebx
	movzbl	(%rdi,%rbx,8), %eax
	leaq	2(%rsi), %rbx
	movb	%al, 1(%rsi)
	testb	$1, %cl
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%rcx), %eax
	cmpl	%r14d, %eax
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movb	$46, 2(%rsi)
	addq	$3, %rsi
	movq	%rsi, %rbx
	jmp	LBB0_9
LBB0_10:
	movb	$0, (%rbx)
	movq	(%r15), %rax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISONSAP_MAX_LENGTH,4,2         ## @ISONSAP_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"isonsap_string: illegal length"

L_.str.1:                               ## @.str.1
	.asciz	"isonsap_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	_isonsap_string                 ; -- Begin function isonsap_string
	.p2align	2
_isonsap_string:                        ; @isonsap_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
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x2
Lloh2:
	adrp	x8, _ISONSAP_MAX_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISONSAP_MAX_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w2
	b.lt	LBB0_11
; %bb.2:
	mov	x20, x1
	mov	x0, x23
	mov	x2, x19
	bl	_lookup_nsap
	mov	x21, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_11
; %bb.3:
	mov	w0, #51
	bl	_malloc
	mov	x22, x0
	str	x0, [x21]
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x23]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	blr	x8
LBB0_5:
	mov	x8, #0
Lloh7:
	adrp	x9, _hex@GOTPAGE
Lloh8:
	ldr	x9, [x9, _hex@GOTPAGEOFF]
	mov	w10, #46
	mov	w11, w19
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cmp	w11, w8
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x12, x22
	lsl	x13, x8, #2
	ldr	x14, [x9]
	ldr	w15, [x20, x13]
	asr	w15, w15, #4
	ldr	x14, [x14, w15, sxtw #3]
	strb	w14, [x22], #2
	ldr	w13, [x20, x13]
	ldr	x14, [x9]
	and	x13, x13, #0xf
	ldr	x13, [x14, x13, lsl #3]
	strb	w13, [x12, #1]
	tbnz	w8, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w13, w8, #1
	cmp	w13, w19
	b.ge	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x12, #3
	strb	w10, [x12, #2]
	b	LBB0_6
LBB0_10:
	strb	wzr, [x22]
	ldr	x0, [x21]
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ISONSAP_MAX_LENGTH,4,2         ; @ISONSAP_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"isonsap_string: illegal length"

l_.str.1:                               ; @.str.1
	.asciz	"isonsap_string: malloc"

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