	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clean_devcrypto_session
_clean_devcrypto_session:               ## @clean_devcrypto_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_cfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CIOCFSESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_SYS_F_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYSerr
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cfd,4,2                        ## @cfd
	.comm	_CIOCFSESSION,4,2               ## @CIOCFSESSION
	.comm	_SYS_F_IOCTL,4,2                ## @SYS_F_IOCTL
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_clean_devcrypto_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clean_devcrypto_session
_clean_devcrypto_session:               ; @clean_devcrypto_session
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _cfd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cfd@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CIOCFSESSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CIOCFSESSION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_ioctl
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #1
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _SYS_F_IOCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYS_F_IOCTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_SYSerr
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cfd,4,2                        ; @cfd
	.comm	_CIOCFSESSION,4,2               ; @CIOCFSESSION
	.comm	_SYS_F_IOCTL,4,2                ; @SYS_F_IOCTL
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_clean_devcrypto_session
.subsections_via_symbols
