	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_file_flock                 ## -- Begin function mrb_file_flock
	.p2align	4, 0x90
_mrb_file_flock:                        ## @mrb_file_flock
	.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	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_mrb_get_args
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mrb_io_fileno
	movl	%eax, %edi
	callq	_mrb_fixnum
	movq	%rax, %rbx
	movl	-44(%rbp), %esi
	movl	%ebx, %edi
	callq	_flock
	cmpl	$-1, %eax
	je	LBB0_1
LBB0_9:
	xorl	%edi, %edi
	callq	_mrb_fixnum_value
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_LOCK_NB@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mrb_sys_fail
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi
	movl	%ebx, %edi
	callq	_flock
	cmpl	$-1, %eax
	jne	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	cmpl	$130, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	je	LBB0_5
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_mrb_false_value
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i"

	.comm	_errno,4,2                      ## @errno
	.comm	_LOCK_NB,4,2                    ## @LOCK_NB
L_.str.1:                               ## @.str.1
	.asciz	"flock failed"

	.comm	_E_NOTIMP_ERROR,4,2             ## @E_NOTIMP_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_file_flock                 ; -- Begin function mrb_file_flock
	.p2align	2
_mrb_file_flock:                        ; @mrb_file_flock
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_mrb_get_args
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_io_fileno
	bl	_mrb_fixnum
	mov	x20, x0
	ldr	w1, [sp, #12]
	bl	_flock
	cmn	w0, #1
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #0
	bl	_mrb_fixnum_value
LBB0_2:
	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
LBB0_3:
Lloh2:
	adrp	x22, _errno@GOTPAGE
Lloh3:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x23, _LOCK_NB@GOTPAGE
Lloh5:
	ldr	x23, [x23, _LOCK_NB@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_sys_fail
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_flock
	cmn	w0, #1
	b.ne	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #128
	b.eq	LBB0_4
	b	LBB0_5
LBB0_10:
	bl	_mrb_false_value
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i"

	.comm	_errno,4,2                      ; @errno
	.comm	_LOCK_NB,4,2                    ; @LOCK_NB
l_.str.1:                               ; @.str.1
	.asciz	"flock failed"

	.comm	_E_NOTIMP_ERROR,4,2             ; @E_NOTIMP_ERROR
.subsections_via_symbols
