	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setifgreopts
_setifgreopts:                          ## @setifgreopts
	.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	%edx, %r14d
	movl	%esi, %ebx
	movq	_ifr@GOTPCREL(%rip), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, (%rdx)
	movq	_GREGOPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.4:
	orl	-20(%rbp), %ebx
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_3:
	decl	%ebx
	andl	-20(%rbp), %ebx
LBB0_5:
	movl	%ebx, -20(%rbp)
	movq	_GRESOPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ifr@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	callq	_warn
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifr,8,3                        ## @ifr
	.comm	_GREGOPTS,4,2                   ## @GREGOPTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl(GREGOPTS)"

	.comm	_GRESOPTS,4,2                   ## @GRESOPTS
L_.str.1:                               ## @.str.1
	.asciz	"ioctl(GIFSOPTS)"

	.no_dead_strip	_setifgreopts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setifgreopts
_setifgreopts:                          ; @setifgreopts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x2, _ifr@GOTPAGE
Lloh1:
	ldr	x2, [x2, _ifr@GOTPAGEOFF]
	add	x8, sp, #12
	str	x8, [x2]
Lloh2:
	adrp	x8, _GREGOPTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GREGOPTS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	tbnz	w20, #31, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	orr	w8, w8, w20
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	sub	w8, w20, #1
	ldr	w9, [sp, #12]
	and	w8, w9, w8
LBB0_5:
	str	w8, [sp, #12]
Lloh7:
	adrp	x8, _GRESOPTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GRESOPTS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, _ifr@GOTPAGE
Lloh11:
	ldr	x2, [x2, _ifr@GOTPAGEOFF]
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.6:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_warn
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ifr,8,3                        ; @ifr
	.comm	_GREGOPTS,4,2                   ; @GREGOPTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl(GREGOPTS)"

	.comm	_GRESOPTS,4,2                   ; @GRESOPTS
l_.str.1:                               ; @.str.1
	.asciz	"ioctl(GIFSOPTS)"

	.no_dead_strip	_setifgreopts
.subsections_via_symbols
