	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_ioctl_sifflags
_bridge_ioctl_sifflags:                 ## @bridge_ioctl_sifflags
	.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
	movq	%rsi, %rbx
	movl	4(%rsi), %esi
	callq	_bridge_lookup_member
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %eax
	movq	_IFBIF_SPAN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_4:
	movq	%r14, %r15
	addq	$4, %r15
	movq	_IFBIF_STP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r14), %edx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.5:
	testl	%ecx, %edx
	jne	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	callq	_bstp_enable
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_9
LBB0_7:
	testl	%ecx, %edx
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_bstp_disable
LBB0_9:
	movq	_IFBIF_BSTP_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	(%rbx), %eax
	setne	%sil
	movq	%r15, %rdi
	callq	_bstp_set_edge
	movq	_IFBIF_BSTP_AUTOEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	(%rbx), %eax
	setne	%sil
	movq	%r15, %rdi
	callq	_bstp_set_autoedge
	movq	_IFBIF_BSTP_PTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	(%rbx), %eax
	setne	%sil
	movq	%r15, %rdi
	callq	_bstp_set_ptp
	movq	_IFBIF_BSTP_AUTOPTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	(%rbx), %eax
	setne	%sil
	movq	%r15, %rdi
	callq	_bstp_set_autoptp
	movq	_IFBIFMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IFBIF_SPAN,4,2                 ## @IFBIF_SPAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFBIF_STP,4,2                  ## @IFBIF_STP
	.comm	_IFBIF_BSTP_EDGE,4,2            ## @IFBIF_BSTP_EDGE
	.comm	_IFBIF_BSTP_AUTOEDGE,4,2        ## @IFBIF_BSTP_AUTOEDGE
	.comm	_IFBIF_BSTP_PTP,4,2             ## @IFBIF_BSTP_PTP
	.comm	_IFBIF_BSTP_AUTOPTP,4,2         ## @IFBIF_BSTP_AUTOPTP
	.comm	_IFBIFMASK,4,2                  ## @IFBIFMASK
	.no_dead_strip	_bridge_ioctl_sifflags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bridge_ioctl_sifflags
_bridge_ioctl_sifflags:                 ; @bridge_ioctl_sifflags
	.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	x19, x1
	ldr	w1, [x1, #4]
	bl	_bridge_lookup_member
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IFBIF_SPAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFBIF_SPAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_3:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_4:
	mov	x20, x0
	add	x21, x0, #4
Lloh9:
	adrp	x9, _IFBIF_STP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFBIF_STP@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x9]
	ldr	w9, [x0]
	and	w9, w9, w10
	tst	w10, w8
	b.eq	LBB0_7
; %bb.5:
	cbnz	w9, LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_bstp_enable
	cbnz	w0, LBB0_10
	b	LBB0_9
LBB0_7:
	cbz	w9, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_bstp_disable
LBB0_9:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _IFBIF_BSTP_EDGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFBIF_BSTP_EDGE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x21
	bl	_bstp_set_edge
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _IFBIF_BSTP_AUTOEDGE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IFBIF_BSTP_AUTOEDGE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x21
	bl	_bstp_set_autoedge
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _IFBIF_BSTP_PTP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IFBIF_BSTP_PTP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x21
	bl	_bstp_set_ptp
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _IFBIF_BSTP_AUTOPTP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IFBIF_BSTP_AUTOPTP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x21
	bl	_bstp_set_autoptp
	mov	w0, #0
	ldr	w8, [x19]
Lloh24:
	adrp	x9, _IFBIFMASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IFBIFMASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x20]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IFBIF_SPAN,4,2                 ; @IFBIF_SPAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFBIF_STP,4,2                  ; @IFBIF_STP
	.comm	_IFBIF_BSTP_EDGE,4,2            ; @IFBIF_BSTP_EDGE
	.comm	_IFBIF_BSTP_AUTOEDGE,4,2        ; @IFBIF_BSTP_AUTOEDGE
	.comm	_IFBIF_BSTP_PTP,4,2             ; @IFBIF_BSTP_PTP
	.comm	_IFBIF_BSTP_AUTOPTP,4,2         ; @IFBIF_BSTP_AUTOPTP
	.comm	_IFBIFMASK,4,2                  ; @IFBIFMASK
	.no_dead_strip	_bridge_ioctl_sifflags
.subsections_via_symbols
