	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_xenbus_vif_flags
_read_xenbus_vif_flags:                 ## @read_xenbus_vif_flags
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	8(%rdi), %r14
	movq	_XBT_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-36(%rbp), %r8
	callq	_xenbus_scanf
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_1
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_1:
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.3:
	cmpl	$0, -36(%rbp)
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	$30, %edi
	callq	_msecs_to_jiffies
	movq	(%r15), %rcx
	movl	%eax, 24(%rcx)
	movq	$0, 16(%rcx)
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, (%r12)
	movl	$0, 12(%r12)
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_TCPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GSO_BIT
	orl	%eax, 12(%r12)
LBB0_9:
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_TCPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GSO_BIT
	orl	%eax, 12(%r12)
LBB0_11:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, 4(%r12)
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, 8(%r12)
	jmp	LBB0_12
LBB0_2:
	movl	(%r14), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_xenbus_dev_fatal
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XBT_NIL,4,2                    ## @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request-rx-copy"

L_.str.1:                               ## @.str.1
	.asciz	"%u"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"reading %s/request-rx-copy"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.3:                               ## @.str.3
	.asciz	"feature-rx-notify"

L_.str.4:                               ## @.str.4
	.asciz	"feature-sg"

L_.str.5:                               ## @.str.5
	.asciz	"feature-gso-tcpv4"

	.comm	_TCPV4,4,2                      ## @TCPV4
L_.str.6:                               ## @.str.6
	.asciz	"feature-gso-tcpv6"

	.comm	_TCPV6,4,2                      ## @TCPV6
L_.str.7:                               ## @.str.7
	.asciz	"feature-no-csum-offload"

L_.str.8:                               ## @.str.8
	.asciz	"feature-ipv6-csum-offload"

	.no_dead_strip	_read_xenbus_vif_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_xenbus_vif_flags
_read_xenbus_vif_flags:                 ; @read_xenbus_vif_flags
	.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	x20, x0
	ldp	x22, x19, [x0]
Lloh0:
	adrp	x8, _XBT_NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XBT_NIL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x4, sp, #12
	bl	_xenbus_scanf
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
LBB0_1:
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_2:
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_1
; %bb.4:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cbnz	x0, LBB0_6
; %bb.5:
	mov	w0, #30
	bl	_msecs_to_jiffies
	ldr	x8, [x20]
	str	w0, [x8, #24]
	str	xzr, [x8, #16]
LBB0_6:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x22]
	str	wzr, [x22, #12]
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cbz	x0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _TCPV4@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TCPV4@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_GSO_BIT
	ldr	w8, [x22, #12]
	orr	w8, w8, w0
	str	w8, [x22, #12]
LBB0_8:
	ldr	w0, [x19]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cbz	x0, LBB0_10
; %bb.9:
Lloh24:
	adrp	x8, _TCPV6@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TCPV6@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_GSO_BIT
	ldr	w8, [x22, #12]
	orr	w8, w8, w0
	str	w8, [x22, #12]
LBB0_10:
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cmp	x0, #0
	cset	w8, eq
	str	w8, [x22, #4]
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	mov	w21, #0
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x22, #8]
	b	LBB0_12
LBB0_11:
	ldr	w3, [x19]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_xenbus_dev_fatal
LBB0_12:
	mov	x0, x21
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_XBT_NIL,4,2                    ; @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request-rx-copy"

l_.str.1:                               ; @.str.1
	.asciz	"%u"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"reading %s/request-rx-copy"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.3:                               ; @.str.3
	.asciz	"feature-rx-notify"

l_.str.4:                               ; @.str.4
	.asciz	"feature-sg"

l_.str.5:                               ; @.str.5
	.asciz	"feature-gso-tcpv4"

	.comm	_TCPV4,4,2                      ; @TCPV4
l_.str.6:                               ; @.str.6
	.asciz	"feature-gso-tcpv6"

	.comm	_TCPV6,4,2                      ; @TCPV6
l_.str.7:                               ; @.str.7
	.asciz	"feature-no-csum-offload"

l_.str.8:                               ; @.str.8
	.asciz	"feature-ipv6-csum-offload"

	.no_dead_strip	_read_xenbus_vif_flags
.subsections_via_symbols
