	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_ioctl_gifflags
_bridge_ioctl_gifflags:                 ## @bridge_ioctl_gifflags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	44(%rsi), %esi
	callq	_bridge_lookup_member
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	24(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	72(%rax), %edx
	movl	%edx, 40(%rbx)
	movl	68(%rax), %edx
	movl	%edx, 36(%rbx)
	movl	64(%rax), %edx
	movl	%edx, 32(%rbx)
	movq	16(%rax), %rdx
	movl	$4095, %esi                     ## imm = 0xFFF
	andl	(%rdx), %esi
	movl	%esi, (%rbx)
	movl	32(%rax), %edx
	movl	%edx, 4(%rbx)
	movsd	56(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movsd	4(%rax), %xmm1                  ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 16(%rbx)
	movl	(%rax), %esi
	movl	%esi, 12(%rbx)
	cmpq	$0, 48(%rax)
	je	LBB0_4
## %bb.3:
	movq	_IFBIF_BSTP_EDGE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, 8(%rbx)
LBB0_4:
	movq	_BSTP_PORT_AUTOEDGE@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_6
## %bb.5:
	movq	_IFBIF_BSTP_AUTOEDGE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, 8(%rbx)
LBB0_6:
	cmpq	$0, 40(%rax)
	je	LBB0_8
## %bb.7:
	movq	_IFBIF_BSTP_PTP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
LBB0_8:
	movq	_BSTP_PORT_AUTOPTP@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_IFBIF_BSTP_AUTOPTP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
LBB0_10:
	movq	_BSTP_PORT_ADMEDGE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_IFBIF_BSTP_ADMEDGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
LBB0_12:
	movq	_BSTP_PORT_ADMCOST@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	testl	%edx, (%rsi)
	je	LBB0_14
## %bb.13:
	movq	_IFBIF_BSTP_ADMCOST@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 8(%rbx)
	jmp	LBB0_14
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IFBIF_BSTP_EDGE,4,2            ## @IFBIF_BSTP_EDGE
	.comm	_BSTP_PORT_AUTOEDGE,4,2         ## @BSTP_PORT_AUTOEDGE
	.comm	_IFBIF_BSTP_AUTOEDGE,4,2        ## @IFBIF_BSTP_AUTOEDGE
	.comm	_IFBIF_BSTP_PTP,4,2             ## @IFBIF_BSTP_PTP
	.comm	_BSTP_PORT_AUTOPTP,4,2          ## @BSTP_PORT_AUTOPTP
	.comm	_IFBIF_BSTP_AUTOPTP,4,2         ## @IFBIF_BSTP_AUTOPTP
	.comm	_BSTP_PORT_ADMEDGE,4,2          ## @BSTP_PORT_ADMEDGE
	.comm	_IFBIF_BSTP_ADMEDGE,4,2         ## @IFBIF_BSTP_ADMEDGE
	.comm	_BSTP_PORT_ADMCOST,4,2          ## @BSTP_PORT_ADMCOST
	.comm	_IFBIF_BSTP_ADMCOST,4,2         ## @IFBIF_BSTP_ADMCOST
	.no_dead_strip	_bridge_ioctl_gifflags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bridge_ioctl_gifflags
_bridge_ioctl_gifflags:                 ; @bridge_ioctl_gifflags
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w1, [x1, #44]
	bl	_bridge_lookup_member
	cbz	x0, LBB0_13
; %bb.1:
	ldr	w8, [x0, #24]
	str	w8, [x19, #8]
	ldr	w9, [x0, #72]
	str	w9, [x19, #40]
	ldr	d0, [x0, #64]
	str	d0, [x19, #32]
	ldr	x9, [x0, #16]
	ldr	w9, [x9]
	and	w10, w9, #0xfff
	ldr	w9, [x0, #32]
	stp	w10, w9, [x19]
	ldr	d0, [x0, #56]
	ldur	d1, [x0, #4]
	mov.d	v1[1], v0[0]
	str	q1, [x19, #16]
	ldr	w10, [x0]
	str	w10, [x19, #12]
	ldr	x10, [x0, #48]
	cbz	x10, LBB0_3
; %bb.2:
Lloh0:
	adrp	x10, _IFBIF_BSTP_EDGE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IFBIF_BSTP_EDGE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x19, #8]
LBB0_3:
Lloh3:
	adrp	x10, _BSTP_PORT_AUTOEDGE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BSTP_PORT_AUTOEDGE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x10, _IFBIF_BSTP_AUTOEDGE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IFBIF_BSTP_AUTOEDGE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x19, #8]
LBB0_5:
	ldr	x10, [x0, #40]
	cbz	x10, LBB0_7
; %bb.6:
Lloh9:
	adrp	x10, _IFBIF_BSTP_PTP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IFBIF_BSTP_PTP@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x19, #8]
LBB0_7:
Lloh12:
	adrp	x10, _BSTP_PORT_AUTOPTP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BSTP_PORT_AUTOPTP@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
Lloh15:
	adrp	x10, _IFBIF_BSTP_AUTOPTP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IFBIF_BSTP_AUTOPTP@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x19, #8]
LBB0_9:
Lloh18:
	adrp	x10, _BSTP_PORT_ADMEDGE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _BSTP_PORT_ADMEDGE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
Lloh21:
	adrp	x10, _IFBIF_BSTP_ADMEDGE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IFBIF_BSTP_ADMEDGE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x19, #8]
LBB0_11:
Lloh24:
	adrp	x10, _BSTP_PORT_ADMCOST@GOTPAGE
Lloh25:
	ldr	x10, [x10, _BSTP_PORT_ADMCOST@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.12:
	mov	w0, #0
Lloh27:
	adrp	x9, _IFBIF_BSTP_ADMCOST@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IFBIF_BSTP_ADMCOST@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	b	LBB0_15
LBB0_13:
Lloh30:
	adrp	x8, _ENOENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IFBIF_BSTP_EDGE,4,2            ; @IFBIF_BSTP_EDGE
	.comm	_BSTP_PORT_AUTOEDGE,4,2         ; @BSTP_PORT_AUTOEDGE
	.comm	_IFBIF_BSTP_AUTOEDGE,4,2        ; @IFBIF_BSTP_AUTOEDGE
	.comm	_IFBIF_BSTP_PTP,4,2             ; @IFBIF_BSTP_PTP
	.comm	_BSTP_PORT_AUTOPTP,4,2          ; @BSTP_PORT_AUTOPTP
	.comm	_IFBIF_BSTP_AUTOPTP,4,2         ; @IFBIF_BSTP_AUTOPTP
	.comm	_BSTP_PORT_ADMEDGE,4,2          ; @BSTP_PORT_ADMEDGE
	.comm	_IFBIF_BSTP_ADMEDGE,4,2         ; @IFBIF_BSTP_ADMEDGE
	.comm	_BSTP_PORT_ADMCOST,4,2          ; @BSTP_PORT_ADMCOST
	.comm	_IFBIF_BSTP_ADMCOST,4,2         ; @IFBIF_BSTP_ADMCOST
	.no_dead_strip	_bridge_ioctl_gifflags
.subsections_via_symbols
