	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nai_realm_match
_nai_realm_match:                       ## @nai_realm_match
	.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
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.2:
	movq	%rsi, %r12
	movl	$59, %esi
	callq	_os_strchr
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	callq	_os_strdup
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %r15
	xorl	%r14d, %r14d
	cmpb	$0, (%rax)
	je	LBB0_12
## %bb.6:
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r13
	movb	$0, (%rax)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_os_strcasecmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rbx
	incq	%rbx
	cmpb	$0, 1(%r13)
	jne	LBB0_8
	jmp	LBB0_12
LBB0_3:
	movq	%r12, %rsi
	callq	_os_strcasecmp
	xorl	%r14d, %r14d
	testq	%rax, %rax
	sete	%r14b
	jmp	LBB0_13
LBB0_9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_os_strcasecmp
	xorl	%r14d, %r14d
	testq	%rax, %rax
	sete	%r14b
	jmp	LBB0_12
LBB0_11:
	movl	$1, %r14d
LBB0_12:
	movq	%r15, %rdi
	callq	_os_free
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nai_realm_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nai_realm_match
_nai_realm_match:                       ; @nai_realm_match
	.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	w21, #0
	cbz	x1, LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_15
; %bb.2:
	mov	x19, x1
	mov	w1, #59
	bl	_os_strchr
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_10
; %bb.3:
	bl	_os_strdup
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.5:
	mov	x21, x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #59
	bl	_os_strchr
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	strb	wzr, [x0]
	mov	x0, x21
	mov	x1, x19
	bl	_os_strcasecmp
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x22, #1]!
	mov	x21, x22
	cbnz	w8, LBB0_6
LBB0_9:
	mov	w21, #0
	b	LBB0_14
LBB0_10:
	mov	x1, x19
	bl	_os_strcasecmp
	cmp	x0, #0
	cset	w21, eq
	b	LBB0_15
LBB0_11:
	mov	w21, #0
	b	LBB0_15
LBB0_12:
	mov	x0, x21
	mov	x1, x19
	bl	_os_strcasecmp
	cmp	x0, #0
	cset	w21, eq
	b	LBB0_14
LBB0_13:
	mov	w21, #1
LBB0_14:
	mov	x0, x20
	bl	_os_free
LBB0_15:
	mov	x0, 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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nai_realm_match
.subsections_via_symbols
