	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_basicsocket_getsockopt
_mrb_basicsocket_getsockopt:            ## @mrb_basicsocket_getsockopt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_mrb_get_args
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_socket_fd
	movl	%eax, %r14d
	movl	$8, -60(%rbp)
	movl	-80(%rbp), %esi
	movl	-72(%rbp), %edx
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movl	%eax, %edi
	callq	_getsockopt
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mrb_sys_fail
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mrb_class_get
	movl	%eax, %edi
	callq	_mrb_obj_value
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mrb_intern_lit
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mrb_const_get
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_socket_family
	movq	%rax, %r14
	movl	-60(%rbp), %edx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mrb_str_new
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_mrb_fixnum_value
	movl	%eax, %r14d
	movq	-80(%rbp), %rdi
	callq	_mrb_fixnum_value
	movl	%eax, %r13d
	movq	-72(%rbp), %rdi
	callq	_mrb_fixnum_value
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$4, %ecx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	pushq	%r12
	pushq	%rax
	callq	_mrb_funcall
	addq	$16, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ii"

L_.str.1:                               ## @.str.1
	.asciz	"getsockopt"

L_.str.2:                               ## @.str.2
	.asciz	"Socket"

L_.str.3:                               ## @.str.3
	.asciz	"Option"

L_.str.4:                               ## @.str.4
	.asciz	"new"

	.no_dead_strip	_mrb_basicsocket_getsockopt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_basicsocket_getsockopt
_mrb_basicsocket_getsockopt:            ; @mrb_basicsocket_getsockopt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_mrb_get_args
	mov	x0, x19
	mov	x1, x20
	bl	_socket_fd
	mov	x20, x0
	mov	w8, #8
	str	w8, [sp, #12]
	ldr	w1, [sp, #24]
	ldr	w2, [sp, #16]
	add	x3, sp, #32
	add	x4, sp, #12
	bl	_getsockopt
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_sys_fail
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mrb_class_get
	bl	_mrb_obj_value
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mrb_intern_lit
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_const_get
	mov	x21, x0
	mov	x0, x20
	bl	_socket_family
	mov	x20, x0
	ldr	w2, [sp, #12]
	add	x1, sp, #32
	mov	x0, x19
	bl	_mrb_str_new
	mov	x22, x0
	mov	x0, x20
	bl	_mrb_fixnum_value
	mov	x20, x0
	ldr	x0, [sp, #24]
	bl	_mrb_fixnum_value
	mov	x23, x0
	ldr	x0, [sp, #16]
	bl	_mrb_fixnum_value
	mov	x6, x0
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	w3, #4
	mov	x4, x20
	mov	x5, x23
	mov	x7, x22
	bl	_mrb_funcall
	ldr	x8, [sp, #40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ii"

l_.str.1:                               ; @.str.1
	.asciz	"getsockopt"

l_.str.2:                               ; @.str.2
	.asciz	"Socket"

l_.str.3:                               ; @.str.3
	.asciz	"Option"

l_.str.4:                               ; @.str.4
	.asciz	"new"

	.no_dead_strip	_mrb_basicsocket_getsockopt
.subsections_via_symbols
