	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_align_size                ## -- Begin function sdio_align_size
	.p2align	4, 0x90
_sdio_align_size:                       ## @sdio_align_size
	.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	%esi, %r14d
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	__sdio_align_size
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_sdio_max_byte_size
	cmpl	%eax, %ebx
	jbe	LBB0_6
## %bb.1:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.2:
	movl	(%r15), %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	je	LBB0_6
## %bb.3:
	leal	(%rbx,%rcx), %edi
	decl	%edi
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
	subl	%edx, %edi
	callq	__sdio_align_size
	movl	%eax, %ecx
	movl	(%r15), %esi
	xorl	%edx, %edx
	divl	%esi
	testl	%edx, %edx
	je	LBB0_13
## %bb.4:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %edi
	callq	__sdio_align_size
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_sdio_max_byte_size
	cmpl	%eax, %r12d
	ja	LBB0_7
## %bb.5:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%r15)
	addl	%ebx, %r12d
	subl	%edx, %r12d
	movl	%r12d, %r14d
	jmp	LBB0_7
LBB0_6:
	movl	%ebx, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	callq	_sdio_max_byte_size
	movl	%eax, %edi
	callq	__sdio_align_size
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_sdio_max_byte_size
	cmpl	%eax, %ebx
	jne	LBB0_7
## %bb.9:
	xorl	%ecx, %ecx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%edx, %ebx
	testl	%edx, %edx
	je	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	callq	__sdio_align_size
	movl	%eax, %ecx
LBB0_11:
	subl	%ebx, %r14d
	addl	%ecx, %r14d
	jmp	LBB0_7
LBB0_13:
	movl	%ecx, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_align_size                ; -- Begin function sdio_align_size
	.p2align	2
_sdio_align_size:                       ; @sdio_align_size
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	__sdio_align_size
	mov	x21, x0
	mov	x22, x0
	mov	x0, x20
	bl	_sdio_max_byte_size
	cmp	w21, w0
	b.ls	LBB0_13
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	udiv	w9, w21, w8
	msub	w9, w9, w8, w21
	cbz	w9, LBB0_13
; %bb.3:
	add	w9, w21, w8
	sub	w9, w9, #1
	udiv	w9, w9, w8
	mul	w0, w9, w8
	bl	__sdio_align_size
	ldr	w8, [x20]
	udiv	w9, w0, w8
	msub	w9, w9, w8, w0
	cbz	w9, LBB0_10
; %bb.4:
	udiv	w9, w21, w8
	msub	w0, w9, w8, w21
	bl	__sdio_align_size
	mov	x23, x0
	mov	x0, x20
	bl	_sdio_max_byte_size
	mov	x22, x19
	cmp	w23, w0
	b.hi	LBB0_13
; %bb.5:
	ldr	w8, [x20]
	udiv	w9, w21, w8
	neg	w10, w21
	madd	w8, w9, w8, w10
	add	w9, w23, w21
	add	w22, w9, w8
	b	LBB0_13
LBB0_6:
	mov	x0, x20
	bl	_sdio_max_byte_size
	bl	__sdio_align_size
	mov	x21, x0
	mov	x0, x20
	bl	_sdio_max_byte_size
	cmp	w21, w0
	b.ne	LBB0_9
; %bb.7:
	udiv	w8, w19, w21
	msub	w20, w8, w21, w19
	cbz	w20, LBB0_11
; %bb.8:
	mov	x0, x20
	bl	__sdio_align_size
	b	LBB0_12
LBB0_9:
	mov	x22, x19
	b	LBB0_13
LBB0_10:
	mov	x22, x0
	b	LBB0_13
LBB0_11:
	mov	w0, #0
LBB0_12:
	sub	w8, w19, w20
	add	w22, w8, w0
LBB0_13:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
