	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpam_subst                  ## -- Begin function openpam_subst
	.p2align	4, 0x90
_openpam_subst:                         ## @openpam_subst
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_ENTERS
	testq	%r12, %r12
	leaq	L_.str(%rip), %r15
	cmovneq	%r12, %r15
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movb	(%r15), %al
	movl	%r13d, %ecx
	testb	%al, %al
	je	LBB0_20
## %bb.1:
	leaq	LJTI0_0(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r15), %rbx
	cmpb	$37, %al
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	(%rbx), %eax
	leal	-72(%rax), %ecx
	cmpl	$45, %ecx
	ja	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14,%rcx,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAM_RHOST@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%al, %edi
	callq	_subst_char
	movq	%rbx, %r15
	jmp	LBB0_18
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$37, %edi
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$37, %edi
	callq	_subst_char
	movsbl	(%rbx), %edi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_subst_char
	jmp	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAM_RUSER@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAM_HOST@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAM_SERVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAM_TTY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PAM_USER@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	callq	_subst_item
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %r15
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%r15), %eax
	movl	(%r12), %ecx
	testb	%al, %al
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, %r13d
	je	LBB0_2
LBB0_20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movb	$0, (%rax)
	movl	(%r12), %ecx
LBB0_22:
	cmpl	%ecx, %r13d
	jne	LBB0_26
## %bb.23:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rcx)
	jne	LBB0_25
## %bb.24:
	movq	_PAM_TRY_AGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_25:
	movq	$1, (%rcx)
LBB0_26:
	movl	%r13d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RETURNC                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(null)"

	.comm	_PAM_SUCCESS,4,2                ## @PAM_SUCCESS
	.comm	_PAM_SERVICE,4,2                ## @PAM_SERVICE
	.comm	_PAM_TTY,4,2                    ## @PAM_TTY
	.comm	_PAM_HOST,4,2                   ## @PAM_HOST
	.comm	_PAM_USER,4,2                   ## @PAM_USER
	.comm	_PAM_RHOST,4,2                  ## @PAM_RHOST
	.comm	_PAM_RUSER,4,2                  ## @PAM_RUSER
	.comm	_PAM_TRY_AGAIN,4,2              ## @PAM_TRY_AGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpam_subst                  ; -- Begin function openpam_subst
	.p2align	2
_openpam_subst:                         ; @openpam_subst
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x0, x3
	bl	_ENTERS
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x20, #0
	csel	x26, x8, x20, eq
Lloh2:
	adrp	x22, _PAM_SUCCESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PAM_SUCCESS@GOTPAGEOFF]
	ldr	w20, [x22]
	ldrb	w8, [x26]
	mov	x9, x20
	cbz	w8, LBB0_19
; %bb.1:
Lloh4:
	adrp	x23, lJTI0_0@PAGE
Lloh5:
	add	x23, x23, lJTI0_0@PAGEOFF
Lloh6:
	adrp	x27, _PAM_SERVICE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PAM_SERVICE@GOTPAGEOFF]
Lloh8:
	adrp	x28, _PAM_TTY@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PAM_TTY@GOTPAGEOFF]
Lloh10:
	adrp	x24, _PAM_USER@GOTPAGE
Lloh11:
	ldr	x24, [x24, _PAM_USER@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w0, w8
	bl	_subst_char
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x25]
	ldr	w9, [x22]
	cmp	w8, #0
	ccmp	w20, w9, #0, ne
	mov	x26, x25
	b.ne	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w9, w8, #0xff
	add	x25, x26, #1
	cmp	w9, #37
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsb	w8, [x25]
	sub	w9, w8, #72
	cmp	w9, #45
	b.hi	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x8, LBB0_7
	ldrb	w10, [x23, x9]
	add	x8, x8, x10, lsl #2
	br	x8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x8, _PAM_RHOST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAM_RHOST@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #37
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #37
	bl	_subst_char
	ldrsb	w0, [x25]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_subst_char
	add	x25, x26, #2
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x8, _PAM_RUSER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PAM_RUSER@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x8, _PAM_HOST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAM_HOST@GOTPAGEOFF]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x8]
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_subst_item
	add	x25, x26, #2
	b	LBB0_3
LBB0_19:
	cbz	x21, LBB0_21
; %bb.20:
	strb	wzr, [x21]
	ldr	w9, [x22]
LBB0_21:
	cmp	w20, w9
	b.ne	LBB0_23
; %bb.22:
Lloh18:
	adrp	x8, _PAM_TRY_AGAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAM_TRY_AGAIN@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh20:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w20, w8, w20, eq
	mov	w8, #1
	str	x8, [x19]
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_RETURNC
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_17-LBB0_7)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(null)"

	.comm	_PAM_SUCCESS,4,2                ; @PAM_SUCCESS
	.comm	_PAM_SERVICE,4,2                ; @PAM_SERVICE
	.comm	_PAM_TTY,4,2                    ; @PAM_TTY
	.comm	_PAM_HOST,4,2                   ; @PAM_HOST
	.comm	_PAM_USER,4,2                   ; @PAM_USER
	.comm	_PAM_RHOST,4,2                  ; @PAM_RHOST
	.comm	_PAM_RUSER,4,2                  ; @PAM_RUSER
	.comm	_PAM_TRY_AGAIN,4,2              ; @PAM_TRY_AGAIN
.subsections_via_symbols
