	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_one_and_zeros_padding
_get_one_and_zeros_padding:             ## @get_one_and_zeros_padding
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	$0, (%rdx)
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	decq	%rsi
	xorl	%r8d, %r8d
	movl	$255, %eax
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r10d, %r10d
	cmpb	$0, (%rdi,%rsi)
	movzbl	%r9b, %r9d
	setne	%r10b
	orl	%r9d, %r10d
	xorl	%r11d, %r11d
	cmpl	%r9d, %r10d
	movl	$0, %r9d
	cmovneq	%rsi, %r9
	sete	%r11b
	orq	%r9, %r8
	movq	%r8, (%rdx)
	movzbl	(%rdi,%rsi), %ecx
	xorl	$128, %ecx
	orl	%ecx, %r11d
	andl	%r11d, %eax
	movl	%r10d, %r9d
	addq	$-1, %rsi
	jb	LBB0_5
## %bb.6:
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:
	movq	_MBEDTLS_ERR_CIPHER_INVALID_PADDING@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_CIPHER_INVALID_PADDING,4,2 ## @MBEDTLS_ERR_CIPHER_INVALID_PADDING
	.no_dead_strip	_get_one_and_zeros_padding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_one_and_zeros_padding
_get_one_and_zeros_padding:             ; @get_one_and_zeros_padding
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	cbz	x2, LBB0_6
; %bb.2:
	str	xzr, [x2]
	cbz	x1, LBB0_7
; %bb.3:
	mov	x8, #0
	mov	w11, #0
	sub	x10, x1, #1
	mov	w9, #255
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x0, x10]
	cmp	w12, #0
	cset	w12, ne
	and	w13, w11, #0xff
	orr	w11, w13, w12
	cmp	w11, w13
	csel	x12, xzr, x10, eq
	orr	x8, x12, x8
	str	x8, [x2]
	ldrb	w12, [x0, x10]
	cset	w13, eq
	eor	w12, w12, #0x80
	orr	w12, w12, w13
	and	w9, w12, w9
	sub	x10, x10, #1
	cmn	x10, #1
	b.ne	LBB0_4
; %bb.5:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_CIPHER_INVALID_PADDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_INVALID_PADDING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, #0
	csel	w0, wzr, w8, eq
	ret
LBB0_6:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_7:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_CIPHER_INVALID_PADDING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_INVALID_PADDING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_CIPHER_INVALID_PADDING,4,2 ; @MBEDTLS_ERR_CIPHER_INVALID_PADDING
	.no_dead_strip	_get_one_and_zeros_padding
.subsections_via_symbols
