	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_hw_bar_size
_qed_hw_bar_size:                       ## @qed_hw_bar_size
	.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
	movl	%edx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_BAR_ID_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_PGLUE_B_REG_PF_BAR0_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_PGLUE_B_REG_PF_BAR1_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%rdi), %rdi
	callq	_IS_VF
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qed_vf_hw_bar_size             ## TAILCALL
LBB0_1:
	cmpl	%r15d, %r13d
	cmovel	%r14d, %ebx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_qed_rd
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ecx
	addb	$15, %cl
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	jmp	LBB0_6
LBB0_3:
	movq	(%r12), %rax
	cmpl	$2, (%rax)
	jl	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_INFO
	xorl	%eax, %eax
	movq	_BAR_ID_0@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	sete	%al
	shll	$18, %eax
	addl	$262144, %eax                   ## imm = 0x40000
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_INFO
	movl	$524288, %eax                   ## imm = 0x80000
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BAR_ID_0,4,2                   ## @BAR_ID_0
	.comm	_PGLUE_B_REG_PF_BAR0_SIZE,4,2   ## @PGLUE_B_REG_PF_BAR0_SIZE
	.comm	_PGLUE_B_REG_PF_BAR1_SIZE,4,2   ## @PGLUE_B_REG_PF_BAR1_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAR size not configured. Assuming BAR size of 256kB for GRC and 512kB for DB\n"

L_.str.1:                               ## @.str.1
	.asciz	"BAR size not configured. Assuming BAR size of 512kB for GRC and 512kB for DB\n"

	.no_dead_strip	_qed_hw_bar_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_hw_bar_size
_qed_hw_bar_size:                       ; @qed_hw_bar_size
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _BAR_ID_0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BAR_ID_0@GOTPAGEOFF]
Lloh2:
	adrp	x8, _PGLUE_B_REG_PF_BAR0_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PGLUE_B_REG_PF_BAR0_SIZE@GOTPAGEOFF]
	ldr	w24, [x22]
Lloh4:
	ldr	w23, [x8]
Lloh5:
	adrp	x8, _PGLUE_B_REG_PF_BAR1_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PGLUE_B_REG_PF_BAR1_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
	ldr	x0, [x0]
	bl	_IS_VF
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_qed_vf_hw_bar_size
LBB0_2:
	cmp	w24, w21
	csel	w2, w23, w25, eq
	mov	x0, x19
	mov	x1, x20
	bl	_qed_rd
	cbz	w0, LBB0_4
; %bb.3:
	add	w8, w0, #15
	mov	w9, #1
	lsl	w0, w9, w8
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	ldr	w8, [x22]
	mov	w9, #262144
	mov	w10, #524288
	cmp	w8, #0
	csel	w0, w10, w9, eq
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	mov	w0, #524288
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BAR_ID_0,4,2                   ; @BAR_ID_0
	.comm	_PGLUE_B_REG_PF_BAR0_SIZE,4,2   ; @PGLUE_B_REG_PF_BAR0_SIZE
	.comm	_PGLUE_B_REG_PF_BAR1_SIZE,4,2   ; @PGLUE_B_REG_PF_BAR1_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAR size not configured. Assuming BAR size of 256kB for GRC and 512kB for DB\n"

l_.str.1:                               ; @.str.1
	.asciz	"BAR size not configured. Assuming BAR size of 512kB for GRC and 512kB for DB\n"

	.no_dead_strip	_qed_hw_bar_size
.subsections_via_symbols
