	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_set_int_mode
_qed_set_int_mode:                      ## @qed_set_int_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	12(%rdi), %r14
	movl	16(%rdi), %ebx
	cmpl	$130, %ebx
	je	LBB0_14
## %bb.1:
	movl	%esi, %r15d
	cmpl	$129, %ebx
	je	LBB0_7
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_10
## %bb.3:
	movl	20(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movl	%eax, 24(%r12)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_qed_enable_msix
	testl	%eax, %eax
	je	LBB0_15
## %bb.6:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
	movl	24(%r12), %edi
	callq	_kfree
	testl	%r15d, %r15d
	jne	LBB0_16
LBB0_7:
	movl	$130, %ebx
	cmpl	$1, (%r12)
	jne	LBB0_14
## %bb.8:
	movl	8(%r12), %edi
	callq	_pci_enable_msi
	testl	%eax, %eax
	je	LBB0_9
## %bb.13:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
	testl	%r15d, %r15d
	jne	LBB0_16
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.12:
	negl	%r13d
	jmp	LBB0_16
LBB0_9:
	movl	$129, %ebx
LBB0_14:
	movl	%ebx, (%r14)
LBB0_15:
	movl	12(%r12), %eax
	cmpl	$129, %eax
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rcx, %rsi
	cmpl	$130, %eax
	leaq	L_.str.4(%rip), %rdx
	cmovneq	%rsi, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_INFO
	xorl	%r13d, %r13d
LBB0_16:
	movq	_QED_COAL_MODE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable MSI-X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to enable MSI\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown int_mode value %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Using %s interrupts\n"

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

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

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

	.comm	_QED_COAL_MODE_ENABLE,4,2       ## @QED_COAL_MODE_ENABLE
	.no_dead_strip	_qed_set_int_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_set_int_mode
_qed_set_int_mode:                      ; @qed_set_int_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	add	x20, x0, #12
	ldr	w8, [x0, #16]
	cmp	w8, #130
	b.eq	LBB0_14
; %bb.1:
	mov	x21, x1
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.3:
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	w0, [x19, #24]
	cbz	w0, LBB0_11
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_qed_enable_msix
	cbz	w0, LBB0_15
; %bb.5:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	ldr	w0, [x19, #24]
	bl	_kfree
	cbnz	w21, LBB0_16
LBB0_6:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.7:
	ldr	w0, [x19, #8]
	bl	_pci_enable_msi
	cbz	w0, LBB0_13
; %bb.8:
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	cbnz	w21, LBB0_16
LBB0_9:
	mov	w8, #130
	b	LBB0_14
LBB0_10:
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
	b	LBB0_15
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbz	w8, LBB0_15
LBB0_12:
	neg	w22, w8
	b	LBB0_16
LBB0_13:
	mov	w8, #129
LBB0_14:
	str	w8, [x20]
LBB0_15:
	ldr	w8, [x19, #12]
Lloh15:
	adrp	x9, l_.str.6@PAGE
Lloh16:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh17:
	adrp	x10, l_.str.5@PAGE
Lloh18:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w8, #129
	csel	x9, x10, x9, eq
Lloh19:
	adrp	x10, l_.str.4@PAGE
Lloh20:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w8, #130
	csel	x2, x10, x9, eq
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	mov	w22, #0
LBB0_16:
Lloh23:
	adrp	x8, _QED_COAL_MODE_ENABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _QED_COAL_MODE_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable MSI-X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to enable MSI\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown int_mode value %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Using %s interrupts\n"

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

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

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

	.comm	_QED_COAL_MODE_ENABLE,4,2       ; @QED_COAL_MODE_ENABLE
	.no_dead_strip	_qed_set_int_mode
.subsections_via_symbols
