	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpam_set_option             ## -- Begin function openpam_set_option
	.p2align	4, 0x90
_openpam_set_option:                    ## @openpam_set_option
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_ENTERS
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %r12
	testq	%r12, %r12
	jne	LBB0_4
LBB0_3:
	movq	_PAM_SYSTEM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
	movq	(%rbx), %r12
LBB0_4:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%r13), %eax
	testb	%al, %al
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$61, %al
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	jmp	LBB0_5
LBB0_8:
	cmpl	$0, (%r12)
	jle	LBB0_9
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movzbl	(%rax,%r13), %eax
	testb	%al, %al
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$61, %al
	jne	LBB0_14
	jmp	LBB0_15
LBB0_9:
	xorl	%ebx, %ebx
LBB0_15:
	testq	%r14, %r14
	jne	LBB0_26
## %bb.16:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	(%r12), %ebx
	jne	LBB0_18
## %bb.17:
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
LBB0_18:
	movq	8(%r12), %rax
	movl	%ebx, %r14d
	movq	(%rax,%r14,8), %rdi
	callq	_free
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jge	LBB0_25
## %bb.19:
	movl	%eax, %esi
	subl	%r14d, %esi
	movq	%r14, %rdx
	notq	%rdx
	addq	%rax, %rdx
	andq	$3, %rsi
	je	LBB0_20
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	leaq	1(%r14), %rcx
	movq	8(%rdi,%r14,8), %rbx
	movq	%rbx, (%rdi,%r14,8)
	movq	%rcx, %r14
	decq	%rsi
	jne	LBB0_21
## %bb.22:
	cmpq	$3, %rdx
	jb	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdx
	movq	8(%rdx,%rcx,8), %rsi
	movq	%rsi, (%rdx,%rcx,8)
	movq	8(%r12), %rdx
	movq	16(%rdx,%rcx,8), %rsi
	movq	%rsi, 8(%rdx,%rcx,8)
	movq	8(%r12), %rdx
	movq	24(%rdx,%rcx,8), %rsi
	movq	%rsi, 16(%rdx,%rcx,8)
	movq	8(%r12), %rdx
	movq	32(%rdx,%rcx,8), %rsi
	movq	%rsi, 24(%rdx,%rcx,8)
	leaq	4(%rcx), %rdx
	movq	%rdx, %rcx
	cmpq	%rdx, %rax
	jne	LBB0_23
LBB0_24:
	movq	%rax, %r14
	movl	%eax, %ebx
LBB0_25:
	movq	8(%r12), %rax
	movq	$0, (%rax,%r14,8)
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_26:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%r13d, %edx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_asprintf
	testq	%rax, %rax
	jns	LBB0_28
## %bb.27:
	movq	_PAM_BUF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
LBB0_28:
	movq	8(%r12), %rdi
	cmpl	(%r12), %ebx
	jne	LBB0_32
## %bb.29:
	leal	16(,%rbx,8), %esi
	callq	_realloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_31
## %bb.30:
	movq	-48(%rbp), %rdi
	callq	_FREE
	movq	_PAM_BUF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
LBB0_31:
	movq	-48(%rbp), %rax
	movslq	%ebx, %rcx
	movq	%rax, (%r14,%rcx,8)
	movq	$0, 8(%r14,%rcx,8)
	movq	%r14, 8(%r12)
	incl	(%r12)
	jmp	LBB0_33
LBB0_32:
	movslq	%ebx, %rbx
	movq	(%rdi,%rbx,8), %rdi
	callq	_FREE
	movq	-48(%rbp), %rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_33:
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r14, %rcx
	cmpq	$3, %rdx
	jae	LBB0_23
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_PAM_SYSTEM_ERR,4,2             ## @PAM_SYSTEM_ERR
	.comm	_PAM_SUCCESS,4,2                ## @PAM_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.*s=%s"

	.comm	_PAM_BUF_ERR,4,2                ## @PAM_BUF_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpam_set_option             ; -- Begin function openpam_set_option
	.p2align	2
_openpam_set_option:                    ; @openpam_set_option
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_ENTERS
	cbz	x21, LBB0_3
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	ldr	x22, [x21]
	cbnz	x22, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _PAM_SYSTEM_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAM_SYSTEM_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RETURNC
	ldr	x22, [x21]
LBB0_4:
	mov	x21, #0
	ldrb	w8, [x20, x21]
	cbz	w8, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #61
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrb	w8, [x20, x21]
	cbnz	w8, LBB0_5
LBB0_7:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x23, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x20
	mov	x2, x21
	bl	_strncmp
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldrb	w8, [x8, x21]
	cbz	w8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w8, #61
	b.ne	LBB0_9
	b	LBB0_14
LBB0_13:
	mov	w23, #0
LBB0_14:
Lloh3:
	adrp	x24, _PAM_SUCCESS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PAM_SUCCESS@GOTPAGEOFF]
	cbnz	x19, LBB0_21
; %bb.15:
	ldr	w8, [x22]
	cmp	w23, w8
	b.ne	LBB0_17
; %bb.16:
	ldr	w0, [x24]
	bl	_RETURNC
LBB0_17:
	ldr	x8, [x22, #8]
	mov	w25, w23
	ldr	x0, [x8, w23, uxtw #3]
	bl	_free
	ldr	w8, [x22]
	cmp	w23, w8
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	add	x9, x9, x25, lsl #3
	add	x10, x25, #1
	ldr	x11, [x9, #8]
	str	x11, [x9]
	mov	x25, x10
	cmp	x8, x10
	b.ne	LBB0_18
; %bb.19:
	mov	x25, x8
	mov	x23, x8
LBB0_20:
	ldr	x8, [x22, #8]
	str	xzr, [x8, x25, lsl #3]
	ldr	w0, [x24]
	bl	_RETURNC
LBB0_21:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_asprintf
	tbz	x0, #63, LBB0_23
; %bb.22:
Lloh7:
	adrp	x8, _PAM_BUF_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAM_BUF_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_RETURNC
LBB0_23:
	ldr	w8, [x22]
	ldr	x0, [x22, #8]
	cmp	w23, w8
	b.ne	LBB0_27
; %bb.24:
	lsl	w8, w23, #3
	add	w1, w8, #16
	bl	_realloc
	mov	x19, x0
	cbnz	x0, LBB0_26
; %bb.25:
	ldr	x0, [sp, #8]
	bl	_FREE
Lloh10:
	adrp	x8, _PAM_BUF_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAM_BUF_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_RETURNC
LBB0_26:
	ldr	x8, [sp, #8]
	add	x9, x19, w23, sxtw #3
	stp	x8, xzr, [x9]
	str	x19, [x22, #8]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_28
LBB0_27:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sbfiz	x19, x23, #3, #32
	ldr	x0, [x0, x19]
	bl	_FREE
	ldr	x8, [sp, #8]
	ldr	x9, [x22, #8]
	str	x8, [x9, x19]
LBB0_28:
	ldr	w0, [x24]
	bl	_RETURNC
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAM_SYSTEM_ERR,4,2             ; @PAM_SYSTEM_ERR
	.comm	_PAM_SUCCESS,4,2                ; @PAM_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.*s=%s"

	.comm	_PAM_BUF_ERR,4,2                ; @PAM_BUF_ERR
.subsections_via_symbols
