	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_parse_i_port_id
_srpt_parse_i_port_id:                  ## @srpt_parse_i_port_id
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_strncasecmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leaq	(%rbx,%rcx,2), %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_strlen
	testb	$1, %al
	jne	LBB0_1
## %bb.2:
	shrl	%eax
	movl	$16, %ebx
	movl	%eax, %edi
	movl	$16, %esi
	callq	_min
	movl	%eax, %r12d
	subl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	leaq	(%r14,%rbx,4), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hex2bin                        ## TAILCALL
LBB0_1:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_srpt_parse_i_port_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srpt_parse_i_port_id
_srpt_parse_i_port_id:                  ; @srpt_parse_i_port_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_strncasecmp
	cmp	x0, #0
	cset	w8, eq
	add	x20, x20, w8, uxtw #1
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_strlen
	tbnz	w0, #0, LBB0_2
; %bb.1:
	lsr	w0, w0, #1
	mov	w22, #16
	mov	w1, #16
	bl	_min
	mov	x21, x0
	sub	w22, w22, w0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	add	x0, x19, w22, uxtw #2
	mov	x1, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hex2bin
LBB0_2:
	neg	w0, w21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_srpt_parse_i_port_id
.subsections_via_symbols
