	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_init                       ## -- Begin function log_init
	.p2align	4, 0x90
_log_init:                              ## @log_init
	.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
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	_argv0@GOTPCREL(%rip), %r12
	movq	%rdi, (%r12)
	movq	%rsi, %rdi
	callq	_log_change_level
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	_log_handler@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_log_handler_ctx@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_log_on_stderr@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leal	-128(%r14), %eax
	cmpl	$12, %eax
	jae	LBB0_5
## %bb.6:
	movl	$3071, %ecx                     ## imm = 0xBFF
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.7:
	cltq
	leaq	l_switch.table.log_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edx
	movq	_log_facility@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
## %bb.8:
	movq	___progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_9:
	movq	_LOG_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_openlog
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_closelog                       ## TAILCALL
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	jmp	LBB0_2
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
LBB0_2:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_argv0,8,3                      ## @argv0
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unrecognized internal syslog level code %d\n"

	.comm	_log_handler,8,3                ## @log_handler
	.comm	_log_handler_ctx,8,3            ## @log_handler_ctx
	.comm	_log_on_stderr,4,2              ## @log_on_stderr
	.comm	_LOG_DAEMON,4,2                 ## @LOG_DAEMON
	.comm	_log_facility,4,2               ## @log_facility
	.comm	_LOG_USER,4,2                   ## @LOG_USER
	.comm	_LOG_AUTH,4,2                   ## @LOG_AUTH
	.comm	_LOG_LOCAL0,4,2                 ## @LOG_LOCAL0
	.comm	_LOG_LOCAL1,4,2                 ## @LOG_LOCAL1
	.comm	_LOG_LOCAL2,4,2                 ## @LOG_LOCAL2
	.comm	_LOG_LOCAL3,4,2                 ## @LOG_LOCAL3
	.comm	_LOG_LOCAL4,4,2                 ## @LOG_LOCAL4
	.comm	_LOG_LOCAL5,4,2                 ## @LOG_LOCAL5
	.comm	_LOG_LOCAL6,4,2                 ## @LOG_LOCAL6
	.comm	_LOG_LOCAL7,4,2                 ## @LOG_LOCAL7
L_.str.1:                               ## @.str.1
	.asciz	"Unrecognized internal syslog facility code %d\n"

	.comm	___progname,8,3                 ## @__progname
	.comm	_LOG_PID,4,2                    ## @LOG_PID
	.comm	_LOG_AUTHPRIV,4,2               ## @LOG_AUTHPRIV
	.comm	_SYSLOG_DATA_INIT,4,2           ## @SYSLOG_DATA_INIT
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.log_init
l_switch.table.log_init:
	.quad	_LOG_USER
	.quad	_LOG_LOCAL7
	.quad	_LOG_LOCAL6
	.quad	_LOG_LOCAL5
	.quad	_LOG_LOCAL4
	.quad	_LOG_LOCAL3
	.quad	_LOG_LOCAL2
	.quad	_LOG_LOCAL1
	.quad	_LOG_LOCAL0
	.quad	_LOG_DAEMON
	.quad	_LOG_DAEMON
	.quad	_LOG_AUTH

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_init                       ; -- Begin function log_init
	.p2align	2
_log_init:                              ; @log_init
	.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, x3
	mov	x19, x2
	mov	x21, x1
Lloh0:
	adrp	x22, _argv0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _argv0@GOTPAGEOFF]
	str	x0, [x22]
	mov	x0, x1
	bl	_log_change_level
	cbnz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _log_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _log_handler@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x8, _log_handler_ctx@GOTPAGE
Lloh6:
	ldr	x8, [x8, _log_handler_ctx@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
Lloh8:
	adrp	x8, _log_on_stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _log_on_stderr@GOTPAGEOFF]
Lloh10:
	str	w20, [x8]
	cbz	w20, LBB0_3
; %bb.2:
	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
LBB0_3:
	sub	w8, w19, #128
	cmp	w8, #12
	b.hs	LBB0_7
; %bb.4:
	mov	w9, #3071
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_7
; %bb.5:
Lloh11:
	adrp	x9, l_switch.table.log_init@PAGE
Lloh12:
	add	x9, x9, l_switch.table.log_init@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _log_facility@GOTPAGE
Lloh14:
	ldr	x8, [x8, _log_facility@GOTPAGEOFF]
Lloh15:
	str	w2, [x8]
	ldr	x8, [x22]
Lloh16:
	adrp	x9, ___progname@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___progname@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x0, x9, x8, eq
Lloh19:
	adrp	x8, _LOG_PID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LOG_PID@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_openlog
	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	_closelog
LBB0_6:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	b	LBB0_8
LBB0_7:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
LBB0_8:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_argv0,8,3                      ; @argv0
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unrecognized internal syslog level code %d\n"

	.comm	_log_handler,8,3                ; @log_handler
	.comm	_log_handler_ctx,8,3            ; @log_handler_ctx
	.comm	_log_on_stderr,4,2              ; @log_on_stderr
	.comm	_LOG_DAEMON,4,2                 ; @LOG_DAEMON
	.comm	_log_facility,4,2               ; @log_facility
	.comm	_LOG_USER,4,2                   ; @LOG_USER
	.comm	_LOG_AUTH,4,2                   ; @LOG_AUTH
	.comm	_LOG_LOCAL0,4,2                 ; @LOG_LOCAL0
	.comm	_LOG_LOCAL1,4,2                 ; @LOG_LOCAL1
	.comm	_LOG_LOCAL2,4,2                 ; @LOG_LOCAL2
	.comm	_LOG_LOCAL3,4,2                 ; @LOG_LOCAL3
	.comm	_LOG_LOCAL4,4,2                 ; @LOG_LOCAL4
	.comm	_LOG_LOCAL5,4,2                 ; @LOG_LOCAL5
	.comm	_LOG_LOCAL6,4,2                 ; @LOG_LOCAL6
	.comm	_LOG_LOCAL7,4,2                 ; @LOG_LOCAL7
l_.str.1:                               ; @.str.1
	.asciz	"Unrecognized internal syslog facility code %d\n"

	.comm	___progname,8,3                 ; @__progname
	.comm	_LOG_PID,4,2                    ; @LOG_PID
	.comm	_LOG_AUTHPRIV,4,2               ; @LOG_AUTHPRIV
	.comm	_SYSLOG_DATA_INIT,4,2           ; @SYSLOG_DATA_INIT
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.log_init
l_switch.table.log_init:
	.quad	_LOG_USER
	.quad	_LOG_LOCAL7
	.quad	_LOG_LOCAL6
	.quad	_LOG_LOCAL5
	.quad	_LOG_LOCAL4
	.quad	_LOG_LOCAL3
	.quad	_LOG_LOCAL2
	.quad	_LOG_LOCAL1
	.quad	_LOG_LOCAL0
	.quad	_LOG_DAEMON
	.quad	_LOG_DAEMON
	.quad	_LOG_AUTH

.subsections_via_symbols
