	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_init_hwif                ## -- Begin function hinic_init_hwif
	.p2align	4, 0x90
_hinic_init_hwif:                       ## @hinic_init_hwif
	.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
	movq	%rsi, 16(%rdi)
	movq	_HINIC_PCI_CFG_REGS_BAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_ioremap_bar
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_HINIC_PCI_INTR_REGS_BAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_ioremap_bar
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_hwif_ready
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	8(%r14), %rdi
	callq	_iounmap
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movq	(%r14), %rdi
	callq	_iounmap
	jmp	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	callq	_read_hwif_attr
	movq	%r14, %rdi
	callq	_HINIC_IS_PF
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_set_ppf
LBB0_9:
	movq	%r14, %rdi
	callq	_dma_attr_init
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_PCI_CFG_REGS_BAR,4,2     ## @HINIC_PCI_CFG_REGS_BAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to map configuration regs\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HINIC_PCI_INTR_REGS_BAR,4,2    ## @HINIC_PCI_INTR_REGS_BAR
L_.str.1:                               ## @.str.1
	.asciz	"HW interface is not ready\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_init_hwif                ; -- Begin function hinic_init_hwif
	.p2align	2
_hinic_init_hwif:                       ; @hinic_init_hwif
	.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
	str	x1, [x0, #16]
Lloh0:
	adrp	x8, _HINIC_PCI_CFG_REGS_BAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_PCI_CFG_REGS_BAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_ioremap_bar
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _HINIC_PCI_INTR_REGS_BAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HINIC_PCI_INTR_REGS_BAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_ioremap_bar
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_hwif_ready
	cbz	w0, LBB0_7
; %bb.3:
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #8]
	bl	_iounmap
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_5:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	ldr	x0, [x19]
	bl	_iounmap
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_read_hwif_attr
	mov	x0, x19
	bl	_HINIC_IS_PF
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_set_ppf
LBB0_9:
	mov	x0, x19
	bl	_dma_attr_init
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_PCI_CFG_REGS_BAR,4,2     ; @HINIC_PCI_CFG_REGS_BAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to map configuration regs\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HINIC_PCI_INTR_REGS_BAR,4,2    ; @HINIC_PCI_INTR_REGS_BAR
l_.str.1:                               ; @.str.1
	.asciz	"HW interface is not ready\n"

.subsections_via_symbols
