	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_config_host_info
_ena_config_host_info:                  ## @ena_config_host_info
	.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
	movq	%rdi, %r14
	callq	_ena_com_allocate_host_info
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_1:
	movq	(%r14), %r15
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	shll	$8, %eax
	orl	(%rbx), %eax
	movl	%eax, (%r15)
	movq	_ENA_ADMIN_OS_LINUX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_LINUX_VERSION_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movl	32(%r15), %ebx
	xorl	%eax, %eax
	callq	_utsname
	movl	4(%rax), %esi
	movl	%ebx, %edi
	movl	$3, %edx
	callq	_strlcpy
	movq	$0, 24(%r15)
	movl	16(%r15), %ebx
	xorl	%eax, %eax
	callq	_utsname
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$3, %edx
	callq	_strncpy
	movq	_DRV_MODULE_VER_MINOR@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	_ENA_ADMIN_HOST_INFO_MINOR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_DRV_MODULE_VER_SUBMINOR@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %edx
	movq	_ENA_ADMIN_HOST_INFO_SUB_MINOR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_DRV_MODULE_VER_MAJOR@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %esi
	movq	_ENA_ADMIN_HOST_INFO_MODULE_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$75, %edi
	shll	%cl, %edi
	orl	%esi, %eax
	orl	%edx, %edi
	orl	%eax, %edi
	movb	%dil, 4(%r15)
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%eax, 12(%r15)
	movq	_ENA_ADMIN_HOST_INFO_INTERRUPT_MODERATION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_ena_com_set_host_attributes
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ena_com_delete_host_info       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate host info\n"

	.comm	_ENA_ADMIN_OS_LINUX,4,2         ## @ENA_ADMIN_OS_LINUX
	.comm	_LINUX_VERSION_CODE,4,2         ## @LINUX_VERSION_CODE
	.comm	_DRV_MODULE_VER_MAJOR,1,0       ## @DRV_MODULE_VER_MAJOR
	.comm	_DRV_MODULE_VER_MINOR,1,0       ## @DRV_MODULE_VER_MINOR
	.comm	_ENA_ADMIN_HOST_INFO_MINOR_SHIFT,1,0 ## @ENA_ADMIN_HOST_INFO_MINOR_SHIFT
	.comm	_DRV_MODULE_VER_SUBMINOR,1,0    ## @DRV_MODULE_VER_SUBMINOR
	.comm	_ENA_ADMIN_HOST_INFO_SUB_MINOR_SHIFT,1,0 ## @ENA_ADMIN_HOST_INFO_SUB_MINOR_SHIFT
	.comm	_ENA_ADMIN_HOST_INFO_MODULE_TYPE_SHIFT,1,0 ## @ENA_ADMIN_HOST_INFO_MODULE_TYPE_SHIFT
	.comm	_ENA_ADMIN_HOST_INFO_INTERRUPT_MODERATION_MASK,4,2 ## @ENA_ADMIN_HOST_INFO_INTERRUPT_MODERATION_MASK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.2:                               ## @.str.2
	.asciz	"Cannot set host attributes\n"

	.no_dead_strip	_ena_config_host_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_config_host_info
_ena_config_host_info:                  ; @ena_config_host_info
	.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	x20, x1
	mov	x19, x0
	bl	_ena_com_allocate_host_info
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_pr_err
LBB0_2:
	ldr	x21, [x19]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8, lsl #8
	str	w8, [x21]
Lloh2:
	adrp	x8, _ENA_ADMIN_OS_LINUX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENA_ADMIN_OS_LINUX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _LINUX_VERSION_CODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LINUX_VERSION_CODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #36]
	ldr	w20, [x21, #32]
	bl	_utsname
	ldr	w1, [x0, #4]
	mov	x0, x20
	mov	w2, #3
	bl	_strlcpy
	str	xzr, [x21, #24]
	ldr	w20, [x21, #16]
	bl	_utsname
	ldr	w1, [x0]
	mov	x0, x20
	mov	w2, #3
	bl	_strncpy
Lloh8:
	adrp	x8, _DRV_MODULE_VER_MAJOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRV_MODULE_VER_MAJOR@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh10:
	adrp	x9, _DRV_MODULE_VER_MINOR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DRV_MODULE_VER_MINOR@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh12:
	adrp	x10, _ENA_ADMIN_HOST_INFO_MINOR_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ENA_ADMIN_HOST_INFO_MINOR_SHIFT@GOTPAGEOFF]
	ldrb	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _DRV_MODULE_VER_SUBMINOR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRV_MODULE_VER_SUBMINOR@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh16:
	adrp	x10, _ENA_ADMIN_HOST_INFO_SUB_MINOR_SHIFT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ENA_ADMIN_HOST_INFO_SUB_MINOR_SHIFT@GOTPAGEOFF]
	ldrb	w10, [x10]
	lsl	w9, w9, w10
Lloh18:
	adrp	x10, _ENA_ADMIN_HOST_INFO_MODULE_TYPE_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ENA_ADMIN_HOST_INFO_MODULE_TYPE_SHIFT@GOTPAGEOFF]
	orr	w8, w8, w9
	ldrb	w9, [x10]
	mov	w10, #75
	lsl	w9, w10, w9
	orr	w8, w8, w9
	strb	w8, [x21, #4]
	bl	_num_online_cpus
Lloh20:
	adrp	x8, _ENA_ADMIN_HOST_INFO_INTERRUPT_MODERATION_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENA_ADMIN_HOST_INFO_INTERRUPT_MODERATION_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	stp	w8, w0, [x21, #8]
	mov	x0, x19
	bl	_ena_com_set_host_attributes
	cbz	w0, LBB0_5
; %bb.3:
Lloh23:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_6
; %bb.4:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
	b	LBB0_7
LBB0_5:
	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
LBB0_6:
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
LBB0_7:
	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
	b	_ena_com_delete_host_info
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate host info\n"

	.comm	_ENA_ADMIN_OS_LINUX,4,2         ; @ENA_ADMIN_OS_LINUX
	.comm	_LINUX_VERSION_CODE,4,2         ; @LINUX_VERSION_CODE
	.comm	_DRV_MODULE_VER_MAJOR,1,0       ; @DRV_MODULE_VER_MAJOR
	.comm	_DRV_MODULE_VER_MINOR,1,0       ; @DRV_MODULE_VER_MINOR
	.comm	_ENA_ADMIN_HOST_INFO_MINOR_SHIFT,1,0 ; @ENA_ADMIN_HOST_INFO_MINOR_SHIFT
	.comm	_DRV_MODULE_VER_SUBMINOR,1,0    ; @DRV_MODULE_VER_SUBMINOR
	.comm	_ENA_ADMIN_HOST_INFO_SUB_MINOR_SHIFT,1,0 ; @ENA_ADMIN_HOST_INFO_SUB_MINOR_SHIFT
	.comm	_ENA_ADMIN_HOST_INFO_MODULE_TYPE_SHIFT,1,0 ; @ENA_ADMIN_HOST_INFO_MODULE_TYPE_SHIFT
	.comm	_ENA_ADMIN_HOST_INFO_INTERRUPT_MODERATION_MASK,4,2 ; @ENA_ADMIN_HOST_INFO_INTERRUPT_MODERATION_MASK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.2:                               ; @.str.2
	.asciz	"Cannot set host attributes\n"

	.no_dead_strip	_ena_config_host_info
.subsections_via_symbols
