	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hinic_probe
_hinic_probe:                           ## @hinic_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_2:
	movq	_HINIC_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_pci_set_master
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_9:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_8
LBB0_12:
	movq	%r14, %rdi
	callq	_nic_dev_init
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_pci_release_regions
LBB0_4:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable PCI device\n"

	.comm	_HINIC_DRV_NAME,4,2             ## @HINIC_DRV_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Failed to request PCI regions\n"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't set 64-bit DMA mask\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to set DMA mask\n"

L_.str.4:                               ## @.str.4
	.asciz	"Couldn't set 64-bit consistent DMA mask\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to set consistent DMA mask\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to initialize NIC device\n"

L_.str.7:                               ## @.str.7
	.asciz	"HiNIC driver - probed\n"

	.no_dead_strip	_hinic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hinic_probe
_hinic_probe:                           ; @hinic_probe
	.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
	mov	x19, x0
	bl	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_2:
Lloh2:
	adrp	x8, _HINIC_DRV_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HINIC_DRV_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_4:
	mov	x0, x19
	bl	_pci_set_master
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_7
; %bb.5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_7:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	w0, LBB0_10
; %bb.8:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_nic_dev_init
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.11:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x19
	bl	_pci_release_regions
LBB0_13:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable PCI device\n"

	.comm	_HINIC_DRV_NAME,4,2             ; @HINIC_DRV_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Failed to request PCI regions\n"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't set 64-bit DMA mask\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to set DMA mask\n"

l_.str.4:                               ; @.str.4
	.asciz	"Couldn't set 64-bit consistent DMA mask\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to set consistent DMA mask\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to initialize NIC device\n"

l_.str.7:                               ; @.str.7
	.asciz	"HiNIC driver - probed\n"

	.no_dead_strip	_hinic_probe
.subsections_via_symbols
