	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpam_straddch               ## -- Begin function openpam_straddch
	.p2align	4, 0x90
_openpam_straddch:                      ## @openpam_straddch
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	(%r13), %rcx
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.5:
	leaq	1(%rcx), %rdx
	movq	(%r12), %rbx
	cmpq	%rbx, %rdx
	jb	LBB0_10
## %bb.6:
	addq	%rbx, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, (%r12)
	movq	%rax, (%r14)
	movq	(%r13), %rcx
	jmp	LBB0_10
LBB0_1:
	movq	_MIN_STR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:
	movq	%rax, (%r14)
	movq	%rbx, (%r12)
	movq	$0, (%r13)
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	je	LBB0_11
LBB0_10:
	movb	%r15b, (%rax,%rcx)
	movq	(%r13), %rcx
	incq	%rcx
	movq	%rcx, (%r13)
	movq	(%r14), %rax
LBB0_11:
	movb	$0, (%rax,%rcx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	movq	_PAM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	movq	_PAM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	callq	_openpam_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_STR_SIZE,8,3               ## @MIN_STR_SIZE
	.comm	_PAM_LOG_ERROR,4,2              ## @PAM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc(): %m"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"realloc(): %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpam_straddch               ; -- Begin function openpam_straddch
	.p2align	2
_openpam_straddch:                      ; @openpam_straddch
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x9, [x19]
	cbz	w21, LBB0_8
; %bb.2:
	add	x10, x9, #1
	ldr	x8, [x22]
	cmp	x10, x8
	b.lo	LBB0_7
; %bb.3:
	lsl	x23, x8, #1
	mov	x1, x23
	bl	_realloc
	cbz	x0, LBB0_10
; %bb.4:
	str	x23, [x22]
	str	x0, [x20]
	ldr	x9, [x19]
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _MIN_STR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_STR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x9, #0
	str	x0, [x20]
	str	x23, [x22]
	str	xzr, [x19]
	cbz	w21, LBB0_8
LBB0_7:
	strb	w21, [x0, x9]
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	ldr	x0, [x20]
LBB0_8:
	mov	w8, #0
	strb	wzr, [x0, x9]
	b	LBB0_12
LBB0_9:
Lloh3:
	adrp	x8, _PAM_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAM_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x8, _PAM_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAM_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	bl	_openpam_log
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _errno@GOTPAGE
Lloh17:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
	mov	w8, #-1
LBB0_12:
	mov	x0, x8
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_STR_SIZE,8,3               ; @MIN_STR_SIZE
	.comm	_PAM_LOG_ERROR,4,2              ; @PAM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc(): %m"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"realloc(): %m"

.subsections_via_symbols
