	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_set_ifcap
_bridge_set_ifcap:                      ## @bridge_set_ifcap
	.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, %ebx
	movq	%rdi, %r15
	movq	(%rsi), %r14
	callq	_BRIDGE_UNLOCK_ASSERT
	movl	%ebx, -32(%rbp)
	cmpl	%ebx, (%r14)
	je	LBB0_5
## %bb.1:
	movq	_SIOCSIFCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*8(%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_if_printf
LBB0_3:
	movq	_BRIDGE_IFCAPS_MASK@GOTPCREL(%rip), %rax
	movq	_BRIDGE_IFCAPS_STRIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ebx
	andl	%ecx, %ebx
	andl	(%r14), %ebx
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movl	16(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	callq	_if_printf
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCSIFCAP,4,2                 ## @SIOCSIFCAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error setting capabilities on %s: %d\n"

	.comm	_BRIDGE_IFCAPS_MASK,4,2         ## @BRIDGE_IFCAPS_MASK
	.comm	_BRIDGE_IFCAPS_STRIP,4,2        ## @BRIDGE_IFCAPS_STRIP
L_.str.1:                               ## @.str.1
	.asciz	"can't disable some capabilities on %s: 0x%x\n"

	.no_dead_strip	_bridge_set_ifcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bridge_set_ifcap
_bridge_set_ifcap:                      ; @bridge_set_ifcap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x0
	ldr	x19, [x1]
	bl	_BRIDGE_UNLOCK_ASSERT
	str	w21, [sp, #8]
	ldr	w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _SIOCSIFCAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIOCSIFCAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_3
; %bb.2:
	mov	x3, x0
	ldr	w0, [x20]
	ldr	w2, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_if_printf
LBB0_3:
Lloh5:
	adrp	x8, _BRIDGE_IFCAPS_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BRIDGE_IFCAPS_MASK@GOTPAGEOFF]
Lloh7:
	adrp	x9, _BRIDGE_IFCAPS_STRIP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BRIDGE_IFCAPS_STRIP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w8, w21
	ands	w3, w8, w9
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x20]
	ldr	w2, [x19, #16]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_if_printf
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCSIFCAP,4,2                 ; @SIOCSIFCAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error setting capabilities on %s: %d\n"

	.comm	_BRIDGE_IFCAPS_MASK,4,2         ; @BRIDGE_IFCAPS_MASK
	.comm	_BRIDGE_IFCAPS_STRIP,4,2        ; @BRIDGE_IFCAPS_STRIP
l_.str.1:                               ; @.str.1
	.asciz	"can't disable some capabilities on %s: 0x%x\n"

	.no_dead_strip	_bridge_set_ifcap
.subsections_via_symbols
