	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_session
_create_session:                        ## @create_session
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movl	%esi, %r15d
	movl	%edi, %r13d
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r15d, -72(%rbp)
	movq	%rbx, -48(%rbp)
	movq	%r14, -64(%rbp)
	movl	%r12d, -56(%rbp)
	movq	_CIOCGSESSION2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	leaq	-72(%rbp), %rdx
	callq	_ioctl
	movq	%rax, %rbx
	shrq	$63, %rbx
	xorl	$1, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_ATF_REQUIRE_MSG
	movl	-52(%rbp), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIOCGSESSION2,4,2              ## @CIOCGSESSION2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alg %d keylen %zu, errno=%d (%s)"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_create_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_session
_create_session:                        ; @create_session
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	w22, [sp]
	str	x20, [sp, #24]
	str	x19, [sp, #8]
	str	w21, [sp, #16]
Lloh0:
	adrp	x8, _CIOCGSESSION2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CIOCGSESSION2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x23
	bl	_ioctl
	lsr	x8, x0, #63
	eor	w20, w8, #0x1
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_strerror
	mov	x5, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x21
	bl	_ATF_REQUIRE_MSG
	ldr	w0, [sp, #20]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CIOCGSESSION2,4,2              ; @CIOCGSESSION2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alg %d keylen %zu, errno=%d (%s)"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_create_session
.subsections_via_symbols
