	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_convert_block_skcipher
_crypt_convert_block_skcipher:          ## @crypt_convert_block_skcipher
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	12(%rsi), %esi
	movl	16(%r13), %edi
	callq	_bio_iter_iovec
	movq	%rax, %r15
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %esi
	movl	8(%r13), %edi
	callq	_bio_iter_iovec
	movq	%rax, %rbx
	movl	%edx, %r12d
	movl	(%r14), %edi
	decl	%edi
	andl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_2:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	shrq	$32, %r15
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	shrq	$32, %rbx
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_dmreq_of_req
	movq	%rax, %r12
	movl	(%r13), %eax
	movl	%eax, (%r12)
	movq	_CRYPT_IV_LARGE_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movb	4(%r14), %cl
	sarl	%cl, (%r12)
LBB0_4:
	movq	%r13, 24(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_org_tag_of_dmreq
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iv_of_dmreq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_org_iv_of_dmreq
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iv_tag_from_dmreq
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_org_sector_of_dmreq
	movq	%rax, %rbx
	movl	(%r13), %edi
	subl	8(%r14), %edi
	callq	_cpu_to_le64
	movl	%eax, (%rbx)
	movq	8(%r12), %rbx
	movq	16(%r12), %r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_sg_init_table
	movl	(%r14), %edx
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	callq	_sg_set_page
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_sg_init_table
	movl	(%r14), %edx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_sg_set_page
	movq	16(%r14), %rax
	testq	%rax, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_14
## %bb.5:
	cmpl	$0, 28(%r14)
	je	LBB0_8
## %bb.6:
	movl	16(%r13), %edi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.7:
	movq	16(%r14), %rax
LBB0_8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	28(%r14), %edx
	testl	%edx, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.11:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	jmp	LBB0_12
LBB0_23:
	movl	28(%r14), %edx
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_12:
	callq	_memcpy
LBB0_13:
	movl	24(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_memcpy
LBB0_14:
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_skcipher_request_set_crypt
	movl	16(%r13), %edi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_crypto_skcipher_encrypt
	jmp	LBB0_17
LBB0_16:
	movq	%rbx, %rdi
	callq	_crypto_skcipher_decrypt
LBB0_17:
	movl	%eax, %ebx
	leaq	12(%r13), %r15
	leaq	4(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jne	LBB0_21
## %bb.18:
	movq	16(%r14), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	*%rax
	movl	%eax, %ebx
LBB0_21:
	movl	16(%r13), %edi
	movl	(%r14), %edx
	movq	%r15, %rsi
	callq	_bio_advance_iter
	movl	8(%r13), %edi
	movl	(%r14), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_bio_advance_iter
LBB0_22:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CRYPT_IV_LARGE_SECTORS,4,2     ## @CRYPT_IV_LARGE_SECTORS
	.comm	_WRITE,8,3                      ## @WRITE
	.no_dead_strip	_crypt_convert_block_skcipher
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_convert_block_skcipher
_crypt_convert_block_skcipher:          ; @crypt_convert_block_skcipher
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
	mov	x21, x1
	ldr	w1, [x21, #12]!
	bl	_bio_iter_iovec
	mov	x24, x0
	mov	x28, x1
	mov	x22, x20
	ldp	w1, w0, [x22, #4]!
	bl	_bio_iter_iovec
	mov	x26, x0
	mov	x27, x1
	ldr	w8, [x19]
	sub	w8, w8, #1
	and	w0, w8, w24
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_23
LBB0_2:
	lsr	x9, x24, #32
	lsr	x8, x26, #32
	stp	x9, x8, [sp, #24]               ; 16-byte Folded Spill
	mov	x0, x19
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	mov	x1, x23
	bl	_dmreq_of_req
	mov	x24, x0
	ldr	w8, [x20]
	str	w8, [x0]
Lloh3:
	adrp	x8, _CRYPT_IV_LARGE_SECTORS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPT_IV_LARGE_SECTORS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x19, #4]
	ldr	w9, [x24]
	asr	w8, w9, w8
	str	w8, [x24]
LBB0_4:
	str	x20, [x24, #24]
	mov	x0, x19
	mov	x1, x24
	bl	_org_tag_of_dmreq
	str	w25, [x0]
	mov	x0, x19
	mov	x1, x24
	bl	_iv_of_dmreq
	mov	x23, x0
	mov	x0, x19
	mov	x1, x24
	bl	_org_iv_of_dmreq
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	mov	x0, x19
	mov	x1, x24
	bl	_iv_tag_from_dmreq
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x19
	mov	x1, x24
	bl	_org_sector_of_dmreq
	mov	x25, x0
	ldr	w8, [x20]
	ldr	w9, [x19, #8]
	sub	w0, w8, w9
	bl	_cpu_to_le64
	str	w0, [x25]
	ldp	x26, x25, [x24, #8]
	mov	x0, x25
	mov	w1, #1
	bl	_sg_init_table
	ldr	w2, [x19]
	mov	x0, x25
	mov	x1, x28
	ldr	x3, [sp, #24]                   ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_sg_set_page
	mov	x0, x26
	mov	w1, #1
	bl	_sg_init_table
	ldr	w2, [x19]
	mov	x0, x26
	mov	x1, x27
	ldr	x3, [sp, #32]                   ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_sg_set_page
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x28, _WRITE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _WRITE@GOTPAGEOFF]
	cbz	x8, LBB0_15
; %bb.5:
	ldr	w9, [x19, #28]
	cbz	w9, LBB0_8
; %bb.6:
	ldr	w0, [x20, #16]
	bl	_bio_data_dir
	ldr	x8, [x28]
	cmp	x0, x8
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	b.ne	LBB0_12
; %bb.7:
	ldr	x8, [x19, #16]
	b	LBB0_9
LBB0_8:
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
LBB0_9:
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x27
	mov	x2, x24
	blr	x8
	tbnz	w0, #31, LBB0_24
; %bb.10:
	ldr	w2, [x19, #28]
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	cbz	w2, LBB0_14
; %bb.11:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x27
	b	LBB0_13
LBB0_12:
	ldr	w2, [x19, #28]
	mov	x0, x27
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
LBB0_13:
	bl	_memcpy
LBB0_14:
	ldr	w2, [x19, #24]
	mov	x0, x23
	mov	x1, x27
	bl	_memcpy
LBB0_15:
	ldr	w3, [x19]
	ldr	x27, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x27
	mov	x1, x25
	mov	x2, x26
	mov	x4, x23
	bl	_skcipher_request_set_crypt
	ldr	w0, [x20, #16]
	bl	_bio_data_dir
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x27
	bl	_crypto_skcipher_encrypt
	mov	x27, x0
	cbnz	w0, LBB0_22
	b	LBB0_18
LBB0_17:
	mov	x0, x27
	bl	_crypto_skcipher_decrypt
	mov	x27, x0
	cbnz	w0, LBB0_22
LBB0_18:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
; %bb.19:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x19
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x24
	blr	x8
	mov	x27, x0
	b	LBB0_22
LBB0_21:
	mov	w27, #0
LBB0_22:
	ldr	w0, [x20, #16]
	ldr	w2, [x19]
	mov	x1, x21
	bl	_bio_advance_iter
	ldr	w0, [x20, #8]
	ldr	w2, [x19]
	mov	x1, x22
	bl	_bio_advance_iter
LBB0_23:
	mov	x0, x27
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_24:
	mov	x27, x0
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CRYPT_IV_LARGE_SECTORS,4,2     ; @CRYPT_IV_LARGE_SECTORS
	.comm	_WRITE,8,3                      ; @WRITE
	.no_dead_strip	_crypt_convert_block_skcipher
.subsections_via_symbols
