	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsd_init
_bsd_init:                              ## @bsd_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	%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	%ebx, %ebx
	cmpl	$3, %edx
	jne	LBB0_17
## %bb.1:
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movb	(%rsi), %al
	movq	_CI_BSD_COMPRESS@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_17
## %bb.2:
	cmpb	$3, 1(%r14)
	jne	LBB0_17
## %bb.3:
	movl	%r9d, %r13d
	movq	%rdi, %r12
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movzbl	2(%r14), %edi
	callq	_BSD_VERSION
	movq	_BSD_CURRENT_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.4:
	movzbl	2(%r14), %edi
	callq	_BSD_NBITS
	cmpq	(%r12), %rax
	jne	LBB0_17
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.6:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	_LAST@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%ecx, %edx
	sarl	$31, %edx
	notl	%edx
	andl	%ecx, %edx
	subq	%rdx, %rcx
	leaq	(%rax,%rcx,4), %rdi
	leaq	4(,%rdx,4), %rdx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
LBB0_8:
	movslq	16(%r12), %rdx
	testq	%rdx, %rdx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_14
## %bb.9:
	movq	40(%r12), %rcx
	movq	%rdx, %rax
	testb	$1, %dl
	je	LBB0_11
## %bb.10:
	leaq	-1(%rdx), %rax
	movq	_BADCODEM1@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	%rax, %rdi
	shlq	$4, %rdi
	movl	%esi, 8(%rcx,%rdi)
	movq	$0, (%rcx,%rdi)
LBB0_11:
	cmpl	$1, %edx
	je	LBB0_14
## %bb.12:
	movq	%rax, %rdx
	shlq	$4, %rdx
	addq	%rdx, %rcx
	addq	$-8, %rcx
	movq	_BADCODEM1@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	movl	%esi, (%rcx)
	movq	$0, -8(%rcx)
	movl	(%rdx), %esi
	movl	%esi, -16(%rcx)
	movq	$0, -24(%rcx)
	addq	$-32, %rcx
	addl	$-2, %eax
	jne	LBB0_13
LBB0_14:
	movl	%r15d, 20(%r12)
	movq	$0, 32(%r12)
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.15:
	movl	$1, 24(%r12)
LBB0_16:
	movq	%r12, %rdi
	callq	_bsd_reset
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CI_BSD_COMPRESS,1,0            ## @CI_BSD_COMPRESS
	.comm	_BSD_CURRENT_VERSION,8,3        ## @BSD_CURRENT_VERSION
	.comm	_LAST,4,2                       ## @LAST
	.comm	_BADCODEM1,4,2                  ## @BADCODEM1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.no_dead_strip	_bsd_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsd_init
_bsd_init:                              ; @bsd_init
	.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
	cmp	w2, #3
	b.ne	LBB0_14
; %bb.1:
	mov	x23, x1
	ldrb	w8, [x1]
Lloh0:
	adrp	x9, _CI_BSD_COMPRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CI_BSD_COMPRESS@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.2:
	ldrb	w8, [x23, #1]
	cmp	w8, #3
	b.ne	LBB0_14
; %bb.3:
	mov	x22, x5
	mov	x20, x4
	mov	x21, x3
	mov	x19, x0
	ldrb	w0, [x23, #2]
	bl	_BSD_VERSION
Lloh2:
	adrp	x8, _BSD_CURRENT_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BSD_CURRENT_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.4:
	ldrb	w0, [x23, #2]
	bl	_BSD_NBITS
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.5:
	cbz	w22, LBB0_8
; %bb.6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.7:
Lloh5:
	adrp	x9, _LAST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LAST@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	cmp	w9, #0
	csel	w10, w9, wzr, lt
	sub	w10, w9, w10
	sub	x9, x9, x10
	add	x0, x8, x9, lsl #2
	lsl	x8, x10, #2
	add	x2, x8, #4
Lloh8:
	adrp	x1, l_.memset_pattern@PAGE
Lloh9:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	bl	_memset_pattern16
LBB0_8:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_11
; %bb.9:
	sxtw	x9, w8
	ldr	x10, [x19, #40]
	add	x9, x10, x9, lsl #4
	sub	x9, x9, #8
Lloh10:
	adrp	x10, _BADCODEM1@GOTPAGE
Lloh11:
	ldr	x10, [x10, _BADCODEM1@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	str	w11, [x9]
	stur	xzr, [x9, #-8]
	sub	x9, x9, #16
	sub	w8, w8, #1
	cbnz	w8, LBB0_10
LBB0_11:
	str	w21, [x19, #20]
	str	xzr, [x19, #32]
	cbz	w20, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x19, #24]
LBB0_13:
	mov	x0, x19
	bl	_bsd_reset
	mov	w0, #1
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CI_BSD_COMPRESS,1,0            ; @CI_BSD_COMPRESS
	.comm	_BSD_CURRENT_VERSION,8,3        ; @BSD_CURRENT_VERSION
	.comm	_LAST,4,2                       ; @LAST
	.comm	_BADCODEM1,4,2                  ; @BADCODEM1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.no_dead_strip	_bsd_init
.subsections_via_symbols
