	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_fix_features
_xennet_fix_features:                   ## @xennet_fix_features
	.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	%esi, %ebx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_NETIF_F_SG@GOTPCREL(%rip), %r15
	testl	%ebx, (%r15)
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_3:
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %r15
	testl	%ebx, (%r15)
	je	LBB0_6
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_6:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %r15
	testl	%ebx, (%r15)
	je	LBB0_9
## %bb.7:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_9:
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %r15
	testl	%ebx, (%r15)
	je	LBB0_12
## %bb.10:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_xenbus_read_unsigned
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"feature-sg"

	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
L_.str.1:                               ## @.str.1
	.asciz	"feature-ipv6-csum-offload"

	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
L_.str.2:                               ## @.str.2
	.asciz	"feature-gso-tcpv4"

	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
L_.str.3:                               ## @.str.3
	.asciz	"feature-gso-tcpv6"

	.no_dead_strip	_xennet_fix_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_fix_features
_xennet_fix_features:                   ; @xennet_fix_features
	.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
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x21, _NETIF_F_SG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETIF_F_SG@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w19
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	bic	w19, w19, w8
LBB0_3:
Lloh4:
	adrp	x21, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh5:
	ldr	x21, [x21, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x21]
	bic	w19, w19, w8
LBB0_6:
Lloh8:
	adrp	x21, _NETIF_F_TSO@GOTPAGE
Lloh9:
	ldr	x21, [x21, _NETIF_F_TSO@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w8, [x21]
	bic	w19, w19, w8
LBB0_9:
Lloh12:
	adrp	x21, _NETIF_F_TSO6@GOTPAGE
Lloh13:
	ldr	x21, [x21, _NETIF_F_TSO6@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w19
	b.eq	LBB0_12
; %bb.10:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	bl	_xenbus_read_unsigned
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w8, [x21]
	bic	w19, w19, w8
LBB0_12:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"feature-sg"

	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
l_.str.1:                               ; @.str.1
	.asciz	"feature-ipv6-csum-offload"

	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
l_.str.2:                               ; @.str.2
	.asciz	"feature-gso-tcpv4"

	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
l_.str.3:                               ; @.str.3
	.asciz	"feature-gso-tcpv6"

	.no_dead_strip	_xennet_fix_features
.subsections_via_symbols
