	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_set_mac_type              ## -- Begin function i40e_set_mac_type
	.p2align	4, 0x90
_i40e_set_mac_type:                     ## @i40e_set_mac_type
	.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	(%rdi), %rax
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	8(%rdi), %eax
	addl	$-128, %eax
	cmpl	$22, %eax
	ja	LBB0_6
## %bb.2:
	movl	$7732167, %ecx                  ## imm = 0x75FBC7
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.3:
	movq	_I40E_MAC_XL710@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_I40E_ERR_DEVICE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	12(%rdi), %edx
	jmp	LBB0_8
LBB0_5:
	movq	_I40E_MAC_X722@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movl	%edx, 12(%rdi)
	xorl	%ebx, %ebx
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_hw_dbg
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_I40E_MAC_GENERIC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,8,3        ## @PCI_VENDOR_ID_INTEL
	.comm	_I40E_MAC_XL710,4,2             ## @I40E_MAC_XL710
	.comm	_I40E_MAC_X722,4,2              ## @I40E_MAC_X722
	.comm	_I40E_MAC_GENERIC,4,2           ## @I40E_MAC_GENERIC
	.comm	_I40E_ERR_DEVICE_NOT_SUPPORTED,4,2 ## @I40E_ERR_DEVICE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i40e_set_mac_type found mac: %d, returns: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_set_mac_type              ; -- Begin function i40e_set_mac_type
	.p2align	2
_i40e_set_mac_type:                     ; @i40e_set_mac_type
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x0, #8]
	sub	w8, w8, #128
	cmp	w8, #22
	b.hi	LBB0_8
; %bb.2:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #64455
	movk	w9, #117, lsl #16
	tst	w8, w9
	b.eq	LBB0_5
; %bb.3:
	mov	w19, #0
Lloh3:
	adrp	x8, _I40E_MAC_XL710@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_MAC_XL710@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _I40E_ERR_DEVICE_NOT_SUPPORTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40E_ERR_DEVICE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	ldr	w2, [x0, #12]
	b	LBB0_7
LBB0_5:
	mov	w19, #0
Lloh8:
	adrp	x8, _I40E_MAC_X722@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40E_MAC_X722@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	str	w2, [x0, #12]
LBB0_7:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_hw_dbg
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w19, #0
Lloh12:
	adrp	x8, _I40E_MAC_GENERIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40E_MAC_GENERIC@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,8,3        ; @PCI_VENDOR_ID_INTEL
	.comm	_I40E_MAC_XL710,4,2             ; @I40E_MAC_XL710
	.comm	_I40E_MAC_X722,4,2              ; @I40E_MAC_X722
	.comm	_I40E_MAC_GENERIC,4,2           ; @I40E_MAC_GENERIC
	.comm	_I40E_ERR_DEVICE_NOT_SUPPORTED,4,2 ; @I40E_ERR_DEVICE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i40e_set_mac_type found mac: %d, returns: %d\n"

.subsections_via_symbols
