	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WriteHubLog                    ## -- Begin function WriteHubLog
	.p2align	4, 0x90
_WriteHubLog:                           ## @WriteHubLog
	.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
	subq	$24, %rsp
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	(%r15,%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	testq	%r14, %r14
	je	LBB0_9
## %bb.2:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_SiGetSysLogSaveStatus
	movq	%rax, %r13
	shll	$3, %r15d
	movl	4(%rbx), %ecx
	leaq	l_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %r8
	callq	_UniFormat
	movq	_SYSLOG_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	movq	%r12, %rsi
	callq	_WriteServerLog
LBB0_4:
	cmpl	$0, 8(%rbx)
	je	LBB0_9
## %bb.5:
	movq	_SYSLOG_SERVER_AND_HUB_SECURITY_LOG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_7
## %bb.6:
	movq	_SYSLOG_SERVER_AND_HUB_ALL_LOG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_InsertUnicodeRecord
	jmp	LBB0_9
LBB0_7:
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_SiWriteSysLog
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	91                              ## 0x5b
	.long	72                              ## 0x48
	.long	85                              ## 0x55
	.long	66                              ## 0x42
	.long	32                              ## 0x20
	.long	34                              ## 0x22
	.long	37                              ## 0x25
	.long	83                              ## 0x53
	.long	34                              ## 0x22
	.long	93                              ## 0x5d
	.long	32                              ## 0x20
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	0                               ## 0x0

	.comm	_SYSLOG_NONE,8,3                ## @SYSLOG_NONE
	.comm	_SYSLOG_SERVER_AND_HUB_SECURITY_LOG,8,3 ## @SYSLOG_SERVER_AND_HUB_SECURITY_LOG
	.comm	_SYSLOG_SERVER_AND_HUB_ALL_LOG,8,3 ## @SYSLOG_SERVER_AND_HUB_ALL_LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"SECURITY_LOG"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WriteHubLog                    ; -- Begin function WriteHubLog
	.p2align	2
_WriteHubLog:                           ; @WriteHubLog
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	lsl	w8, w24, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cbz	x0, LBB0_8
; %bb.1:
	cbz	x19, LBB0_8
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_SiGetSysLogSaveStatus
	mov	x23, x0
	lsl	w1, w24, #3
	ldr	w3, [x20, #4]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x4, x19
	bl	_UniFormat
Lloh10:
	adrp	x8, _SYSLOG_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SYSLOG_NONE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x20, #16]
	mov	x1, x22
	bl	_WriteServerLog
LBB0_4:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_8
; %bb.5:
Lloh13:
	adrp	x8, _SYSLOG_SERVER_AND_HUB_SECURITY_LOG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SYSLOG_SERVER_AND_HUB_SECURITY_LOG@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _SYSLOG_SERVER_AND_HUB_ALL_LOG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SYSLOG_SERVER_AND_HUB_ALL_LOG@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x23, x8
	ccmp	x23, x9, #4, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	w2, [x20, #4]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	bl	_SiWriteSysLog
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_InsertUnicodeRecord
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	91                              ; 0x5b
	.long	72                              ; 0x48
	.long	85                              ; 0x55
	.long	66                              ; 0x42
	.long	32                              ; 0x20
	.long	34                              ; 0x22
	.long	37                              ; 0x25
	.long	83                              ; 0x53
	.long	34                              ; 0x22
	.long	93                              ; 0x5d
	.long	32                              ; 0x20
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	0                               ; 0x0

	.comm	_SYSLOG_NONE,8,3                ; @SYSLOG_NONE
	.comm	_SYSLOG_SERVER_AND_HUB_SECURITY_LOG,8,3 ; @SYSLOG_SERVER_AND_HUB_SECURITY_LOG
	.comm	_SYSLOG_SERVER_AND_HUB_ALL_LOG,8,3 ; @SYSLOG_SERVER_AND_HUB_ALL_LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"SECURITY_LOG"

.subsections_via_symbols
