	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iavf_set_mac_type              ## -- Begin function iavf_set_mac_type
	.p2align	4, 0x90
_iavf_set_mac_type:                     ## @iavf_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
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_2
## %bb.5:
	movq	_IAVF_MAC_VF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_IAVF_ERR_DEVICE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	12(%rdi), %edx
	jmp	LBB0_8
LBB0_2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	_IAVF_MAC_X722_VF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_IAVF_MAC_GENERIC@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
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,8,3        ## @PCI_VENDOR_ID_INTEL
	.comm	_IAVF_MAC_X722_VF,4,2           ## @IAVF_MAC_X722_VF
	.comm	_IAVF_MAC_VF,4,2                ## @IAVF_MAC_VF
	.comm	_IAVF_MAC_GENERIC,4,2           ## @IAVF_MAC_GENERIC
	.comm	_IAVF_ERR_DEVICE_NOT_SUPPORTED,4,2 ## @IAVF_ERR_DEVICE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"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	_iavf_set_mac_type              ; -- Begin function iavf_set_mac_type
	.p2align	2
_iavf_set_mac_type:                     ; @iavf_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_3
; %bb.1:
	ldr	w8, [x0, #8]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_4
; %bb.2:
	mov	w19, #0
Lloh3:
	adrp	x8, _IAVF_MAC_VF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IAVF_MAC_VF@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x8, _IAVF_ERR_DEVICE_NOT_SUPPORTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IAVF_ERR_DEVICE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	ldr	w2, [x0, #12]
	b	LBB0_8
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.5:
	mov	w19, #0
Lloh8:
	adrp	x8, _IAVF_MAC_X722_VF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IAVF_MAC_X722_VF@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	mov	w19, #0
Lloh10:
	adrp	x8, _IAVF_MAC_GENERIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IAVF_MAC_GENERIC@GOTPAGEOFF]
LBB0_7:
	ldr	w2, [x8]
	str	w2, [x0, #12]
LBB0_8:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,8,3        ; @PCI_VENDOR_ID_INTEL
	.comm	_IAVF_MAC_X722_VF,4,2           ; @IAVF_MAC_X722_VF
	.comm	_IAVF_MAC_VF,4,2                ; @IAVF_MAC_VF
	.comm	_IAVF_MAC_GENERIC,4,2           ; @IAVF_MAC_GENERIC
	.comm	_IAVF_ERR_DEVICE_NOT_SUPPORTED,4,2 ; @IAVF_ERR_DEVICE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found mac: %d, returns: %d\n"

.subsections_via_symbols
