	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getdetails
_getdetails:                            ## @getdetails
	.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	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_getoption
	movq	%rax, %r12
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	movq	_Kpaddalign@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	cmpb	$0, (%rax)
	je	LBB0_4
## %bb.2:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_getoption
	movq	_Kchar@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_luaL_argerror
	movl	-44(%rbp), %eax
LBB0_5:
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	jl	LBB0_12
## %bb.6:
	movq	_Kchar@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r12
	je	LBB0_12
## %bb.7:
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_9
## %bb.8:
	movl	%ecx, -44(%rbp)
	movl	%ecx, %eax
LBB0_9:
	leal	-1(%rax), %ecx
	testl	%ecx, %eax
	je	LBB0_11
## %bb.10:
	movl	4(%r13), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	callq	_luaL_argerror
	movl	-44(%rbp), %eax
LBB0_11:
	leal	-1(%rax), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	andl	%ecx, %edx
	subl	%edx, %eax
	andl	%ecx, %eax
	movl	%eax, %ecx
LBB0_12:
	movl	%ecx, (%r15)
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Kpaddalign,8,3                 ## @Kpaddalign
	.comm	_Kchar,8,3                      ## @Kchar
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid next option for option 'X'"

L_.str.1:                               ## @.str.1
	.asciz	"format asks for alignment not power of 2"

	.no_dead_strip	_getdetails
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getdetails
_getdetails:                            ; @getdetails
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x4
	mov	x24, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	mov	x1, x2
	mov	x2, x3
	bl	_getoption
	mov	x20, x0
	ldr	w8, [x24]
	str	w8, [sp, #12]
Lloh0:
	adrp	x9, _Kpaddalign@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Kpaddalign@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x24, _Kchar@GOTPAGE
Lloh4:
	ldr	x24, [x24, _Kchar@GOTPAGEOFF]
	cmp	x0, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x23]
	ldrb	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x23
	bl	_getoption
	ldr	x9, [x24]
	ldr	w8, [sp, #12]
	cmp	x0, x9
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_4
LBB0_3:
	ldr	w0, [x22, #4]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_luaL_argerror
	ldr	w8, [sp, #12]
LBB0_4:
	ldr	x9, [x24]
	cmp	w8, #2
	ccmp	x20, x9, #4, ge
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #0
	b	LBB0_11
LBB0_6:
	ldr	w9, [x22]
	cmp	w8, w9
	b.le	LBB0_8
; %bb.7:
	str	w9, [sp, #12]
	mov	x8, x9
LBB0_8:
	sub	w9, w8, #1
	tst	w8, w9
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x22, #4]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_luaL_argerror
	ldr	w8, [sp, #12]
LBB0_10:
	sub	w9, w8, #1
	and	w10, w9, w21
	sub	w8, w8, w10
	and	w8, w8, w9
LBB0_11:
	str	w8, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_Kpaddalign,8,3                 ; @Kpaddalign
	.comm	_Kchar,8,3                      ; @Kchar
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid next option for option 'X'"

l_.str.1:                               ; @.str.1
	.asciz	"format asks for alignment not power of 2"

	.no_dead_strip	_getdetails
.subsections_via_symbols
