	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setifcap                       ## -- Begin function setifcap
	.p2align	4, 0x90
_setifcap:                              ## @setifcap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_SIOCGIFCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	_ifr@GOTPCREL(%rip), %edx
	movl	%r15d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_ifr@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	leal	-1(%rbx), %ecx
	andl	%eax, %ecx
	orl	%ebx, %eax
	testl	%ebx, %ebx
	cmovsl	%ecx, %eax
	andl	%eax, 4(%rdx)
	movq	_SIOCSIFCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Perror                         ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_Perror
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCGIFCAP,4,2                 ## @SIOCGIFCAP
	.comm	_ifr,8,2                        ## @ifr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl (SIOCGIFCAP)"

	.comm	_SIOCSIFCAP,4,2                 ## @SIOCSIFCAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setifcap                       ; -- Begin function setifcap
	.p2align	2
_setifcap:                              ; @setifcap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SIOCGIFCAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCGIFCAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _ifr@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ifr@GOTPAGEOFF]
	mov	x0, x2
	mov	x2, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.1:
	sub	w8, w22, #1
	ldp	w9, w10, [x21]
	and	w8, w9, w8
	orr	w9, w9, w22
	cmp	w22, #0
	csel	w8, w8, w9, lt
	and	w8, w8, w10
	str	w8, [x21, #4]
Lloh5:
	adrp	x8, _SIOCSIFCAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIOCSIFCAP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Perror
LBB0_4:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Perror
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCGIFCAP,4,2                 ; @SIOCGIFCAP
	.comm	_ifr,8,2                        ; @ifr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl (SIOCGIFCAP)"

	.comm	_SIOCSIFCAP,4,2                 ; @SIOCSIFCAP
.subsections_via_symbols
