	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_check_hostname              ## -- Begin function sm_check_hostname
	.p2align	4, 0x90
_sm_check_hostname:                     ## @sm_check_hostname
	.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, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strlen
	movl	%eax, %r15d
	leal	1(,%r15,4), %edi
	callq	_malloc
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_svc_getrpccaller
	movq	(%rax), %r13
	xorl	%ebx, %ebx
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	movq	_VIS_WHITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strvis
	movl	$1, %ebx
	cmpl	%r15d, %eax
	je	LBB0_4
## %bb.3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_from_addr
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_syslog
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r12, %rdi
	callq	_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIS_WHITE,4,2                  ## @VIS_WHITE
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sm_stat: client %s hostname %s contained invalid characters."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_check_hostname              ; -- Begin function sm_check_hostname
	.p2align	2
_sm_check_hostname:                     ; @sm_check_hostname
	.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	x22, x0
	mov	x0, x1
	bl	_strlen
	mov	x21, x0
	mov	w0, #1
	bfi	w0, w21, #2, #30
	bl	_malloc
	mov	x19, x0
	ldr	w0, [x22]
	bl	_svc_getrpccaller
	ldr	x22, [x0]
	cmp	x22, #0
	ccmp	x19, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _VIS_WHITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIS_WHITE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_strvis
	cmp	w0, w21
	b.ne	LBB0_3
; %bb.2:
	mov	w20, #1
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x22
	bl	_from_addr
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_syslog
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VIS_WHITE,4,2                  ; @VIS_WHITE
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sm_stat: client %s hostname %s contained invalid characters."

.subsections_via_symbols
