	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gre_status
_gre_status:                            ## @gre_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	$0, -24(%rbp)
	movq	_ifr@GOTPCREL(%rip), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, (%rdx)
	movq	_GREGKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	-24(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_3:
	movq	$0, -24(%rbp)
	movq	_GREGOPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ifr@GOTPCREL(%rip), %r14
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	cmpq	$0, -24(%rbp)
	je	LBB0_9
## %bb.5:
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, (%r14)
	movq	_GREGPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_8:
	movq	-24(%rbp), %rsi
	movq	_GREBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_printb
	movl	$10, %edi
	callq	_putchar
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifr,8,3                        ## @ifr
	.comm	_GREGKEY,4,2                    ## @GREGKEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\tgrekey: 0x%x (%u)\n"

	.comm	_GREGOPTS,4,2                   ## @GREGOPTS
	.comm	_GREGPORT,4,2                   ## @GREGPORT
L_.str.1:                               ## @.str.1
	.asciz	"\tudpport: %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"\toptions"

	.comm	_GREBITS,4,2                    ## @GREBITS
	.no_dead_strip	_gre_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gre_status
_gre_status:                            ; @gre_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x2, _ifr@GOTPAGE
Lloh1:
	ldr	x2, [x2, _ifr@GOTPAGEOFF]
	str	xzr, [sp, #24]
	add	x8, sp, #24
	str	x8, [x2]
Lloh2:
	adrp	x8, _GREGKEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GREGKEY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_ioctl
	ldr	x1, [sp, #24]
	cmp	x0, #0
	ccmp	x1, #0, #4, eq
	b.eq	LBB0_2
; %bb.1:
	str	x1, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_2:
	str	xzr, [sp, #24]
Lloh7:
	adrp	x8, _GREGOPTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GREGOPTS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x20, _ifr@GOTPAGE
Lloh11:
	ldr	x20, [x20, _ifr@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_ioctl
	ldr	x8, [sp, #24]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_6
; %bb.3:
	str	xzr, [sp, #16]
	add	x8, sp, #16
	str	x8, [x20]
Lloh12:
	adrp	x8, _GREGPORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GREGPORT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ioctl
	ldr	x1, [sp, #16]
	cmp	x0, #0
	ccmp	x1, #0, #4, eq
	b.eq	LBB0_5
; %bb.4:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_5:
	ldr	x1, [sp, #24]
Lloh17:
	adrp	x8, _GREBITS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GREBITS@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printb
	mov	w0, #10
	bl	_putchar
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ifr,8,3                        ; @ifr
	.comm	_GREGKEY,4,2                    ; @GREGKEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\tgrekey: 0x%x (%u)\n"

	.comm	_GREGOPTS,4,2                   ; @GREGOPTS
	.comm	_GREGPORT,4,2                   ; @GREGPORT
l_.str.1:                               ; @.str.1
	.asciz	"\tudpport: %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"\toptions"

	.comm	_GREBITS,4,2                    ; @GREBITS
	.no_dead_strip	_gre_status
.subsections_via_symbols
