	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_request_cap_rsp
_handle_request_cap_rsp:                ## @handle_request_cap_rsp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	80(%rsi), %r14
	leaq	12(%rsi), %r12
	movq	%r12, %rdi
	callq	_atomic_dec
	movl	8(%rbx), %edi
	callq	_be16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	addl	$-129, %eax
	cmpl	$6, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	leaq	72(%r15), %rax
	leaq	L_.str(%rip), %r13
	jmp	LBB0_10
LBB0_8:
	movl	(%rbx), %edx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_17
LBB0_4:
	leaq	48(%r15), %rax
	leaq	L_.str.3(%rip), %r13
	jmp	LBB0_10
LBB0_2:
	leaq	64(%r15), %rax
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_10
LBB0_3:
	leaq	56(%r15), %rax
	leaq	L_.str.2(%rip), %r13
	jmp	LBB0_10
LBB0_5:
	leaq	40(%r15), %rax
	leaq	L_.str.4(%rip), %r13
	jmp	LBB0_10
LBB0_6:
	leaq	32(%r15), %rax
	leaq	L_.str.5(%rip), %r13
	jmp	LBB0_10
LBB0_7:
	leaq	24(%r15), %rax
	leaq	L_.str.6(%rip), %r13
LBB0_10:
	movl	(%rbx), %edx
	cmpl	$128, %edx
	je	LBB0_18
## %bb.11:
	cmpl	$136, %edx
	jne	LBB0_16
## %bb.12:
	movq	(%rax), %r12
	movl	4(%rbx), %edi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_be64_to_cpu
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%rax, %rcx
	movq	%r13, %r8
	callq	_dev_info
	movl	8(%rbx), %edi
	callq	_be16_to_cpu
	cmpl	$134, %eax
	jne	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	leaq	L_.str.9(%rip), %rdi
	callq	_pr_err
	movq	16(%r15), %rax
	movq	%rbx, %rcx
	jmp	LBB0_15
LBB0_18:
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_19
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.10(%rip), %rsi
LBB0_17:
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_14:
	movl	4(%rbx), %edi
	callq	_be64_to_cpu
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_15:
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	movl	$1, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ibmvnic_send_req_caps          ## TAILCALL
LBB0_19:
	leaq	8(%r15), %rsi
	movl	$0, (%r15)
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_dma_map_single
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	_FW_FEATURE_CMO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_firmware_has_feature
	testl	%eax, %eax
	jne	LBB0_23
## %bb.21:
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_22:
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_IBMVNIC_CRQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_QUERY_IP_OFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$4, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	movl	4(%r15), %edi
	callq	_cpu_to_be32
	movq	%rax, -72(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ibmvnic_send_crq
	jmp	LBB0_23
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

L_.str.1:                               ## @.str.1
	.asciz	"rx"

L_.str.2:                               ## @.str.2
	.asciz	"rx_add"

L_.str.3:                               ## @.str.3
	.asciz	"tx_entries_per_subcrq"

L_.str.4:                               ## @.str.4
	.asciz	"rx_add_entries_per_subcrq"

L_.str.5:                               ## @.str.5
	.asciz	"mtu"

L_.str.6:                               ## @.str.6
	.asciz	"promisc"

L_.str.7:                               ## @.str.7
	.asciz	"Got invalid cap request rsp %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"req=%lld, rsp=%ld in %s queue, retrying.\n"

L_.str.9:                               ## @.str.9
	.asciz	"mtu of %llu is not supported. Reverting.\n"

L_.str.10:                              ## @.str.10
	.asciz	"Error %d in request cap rsp\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_FW_FEATURE_CMO,4,2             ## @FW_FEATURE_CMO
L_.str.11:                              ## @.str.11
	.asciz	"Couldn't map offload buffer\n"

	.comm	_IBMVNIC_CRQ_CMD,4,2            ## @IBMVNIC_CRQ_CMD
	.comm	_QUERY_IP_OFFLOAD,4,2           ## @QUERY_IP_OFFLOAD
	.no_dead_strip	_handle_request_cap_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_request_cap_rsp
_handle_request_cap_rsp:                ; @handle_request_cap_rsp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x1, #80]
	add	x22, x1, #12
	mov	x0, x22
	bl	_atomic_dec
	ldr	w0, [x21, #8]
	bl	_be16_to_cpu
	sub	w8, w0, #129
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x24, x19, #72
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_10
LBB0_3:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.7@PAGE
Lloh5:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_4:
	add	x24, x19, #48
Lloh6:
	adrp	x23, l_.str.3@PAGE
Lloh7:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_5:
	add	x24, x19, #64
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
	add	x24, x19, #56
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_7:
	add	x24, x19, #40
Lloh12:
	adrp	x23, l_.str.4@PAGE
Lloh13:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_8:
	add	x24, x19, #32
Lloh14:
	adrp	x23, l_.str.5@PAGE
Lloh15:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_9:
	add	x24, x19, #24
Lloh16:
	adrp	x23, l_.str.6@PAGE
Lloh17:
	add	x23, x23, l_.str.6@PAGEOFF
LBB0_10:
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.11:
	cmp	w8, #136
	b.ne	LBB0_18
; %bb.12:
	ldr	x22, [x24]
	ldr	w0, [x21, #4]
	bl	_be64_to_cpu
	mov	x3, x0
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x4, x23
	bl	_dev_info
	ldr	w0, [x21, #8]
	bl	_be16_to_cpu
	cmp	w0, #134
	b.ne	LBB0_21
; %bb.13:
	ldr	x1, [x24]
Lloh20:
	adrp	x0, l_.str.9@PAGE
Lloh21:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_err
	ldr	x0, [x19, #16]
	b	LBB0_22
LBB0_14:
	mov	x0, x22
	bl	_atomic_read
	cbnz	x0, LBB0_20
; %bb.15:
	add	x1, x19, #8
	str	wzr, [x19]
Lloh22:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #4
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_dma_mapping_error
	cbz	x0, LBB0_23
; %bb.16:
Lloh25:
	adrp	x8, _FW_FEATURE_CMO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FW_FEATURE_CMO@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_firmware_has_feature
	cbnz	w0, LBB0_20
; %bb.17:
Lloh28:
	adrp	x1, l_.str.11@PAGE
Lloh29:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_19
LBB0_18:
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.10@PAGE
Lloh31:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_19:
	mov	x0, x20
	bl	_dev_err
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
	ldr	w0, [x21, #4]
	bl	_be64_to_cpu
LBB0_22:
	str	x0, [x24]
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ibmvnic_send_req_caps
LBB0_23:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh32:
	adrp	x8, _IBMVNIC_CRQ_CMD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IBMVNIC_CRQ_CMD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _QUERY_IP_OFFLOAD@GOTPAGE
Lloh36:
	ldr	x9, [x9, _QUERY_IP_OFFLOAD@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	mov	w0, #4
	bl	_cpu_to_be32
	str	x0, [sp, #16]
	ldr	w0, [x19, #4]
	bl	_cpu_to_be32
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ibmvnic_send_crq
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

l_.str.1:                               ; @.str.1
	.asciz	"rx"

l_.str.2:                               ; @.str.2
	.asciz	"rx_add"

l_.str.3:                               ; @.str.3
	.asciz	"tx_entries_per_subcrq"

l_.str.4:                               ; @.str.4
	.asciz	"rx_add_entries_per_subcrq"

l_.str.5:                               ; @.str.5
	.asciz	"mtu"

l_.str.6:                               ; @.str.6
	.asciz	"promisc"

l_.str.7:                               ; @.str.7
	.asciz	"Got invalid cap request rsp %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"req=%lld, rsp=%ld in %s queue, retrying.\n"

l_.str.9:                               ; @.str.9
	.asciz	"mtu of %llu is not supported. Reverting.\n"

l_.str.10:                              ; @.str.10
	.asciz	"Error %d in request cap rsp\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_FW_FEATURE_CMO,4,2             ; @FW_FEATURE_CMO
l_.str.11:                              ; @.str.11
	.asciz	"Couldn't map offload buffer\n"

	.comm	_IBMVNIC_CRQ_CMD,4,2            ; @IBMVNIC_CRQ_CMD
	.comm	_QUERY_IP_OFFLOAD,4,2           ; @QUERY_IP_OFFLOAD
	.no_dead_strip	_handle_request_cap_rsp
.subsections_via_symbols
