	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet32_probe_pci
_pcnet32_probe_pci:                     ## @pcnet32_probe_pci
	.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	%rdi, %r14
	callq	_pci_enable_device
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_pci_set_master
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%rax, %r15
	movq	_PCNET32_DMA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	movq	_pcnet32_debug@GOTPCREL(%rip), %rax
	movq	_NETIF_MSG_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	testl	%ebx, %ebx
	jns	LBB0_18
	jmp	LBB0_17
LBB0_1:
	movl	%eax, %ebx
	movq	_pcnet32_debug@GOTPCREL(%rip), %rax
	movq	_NETIF_MSG_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_18
LBB0_4:
	movq	_pcnet32_debug@GOTPCREL(%rip), %rax
	movq	_NETIF_MSG_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	testl	%ebx, %ebx
	jns	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_PCNET32_TOTAL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_pcnet32_probe1
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_18
	jmp	LBB0_17
LBB0_12:
	movq	_pcnet32_debug@GOTPCREL(%rip), %rax
	movq	_NETIF_MSG_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_14:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_pcnet32_debug,4,2              ## @pcnet32_debug
	.comm	_NETIF_MSG_PROBE,4,2            ## @NETIF_MSG_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable device -- err=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"card has no PCI IO resources, aborting\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCNET32_DMA_MASK,4,2           ## @PCNET32_DMA_MASK
L_.str.2:                               ## @.str.2
	.asciz	"architecture does not support 32bit PCI busmaster DMA\n"

	.comm	_PCNET32_TOTAL_SIZE,4,2         ## @PCNET32_TOTAL_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"pcnet32_probe_pci"

L_.str.4:                               ## @.str.4
	.asciz	"io address range already allocated\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_pcnet32_probe_pci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet32_probe_pci
_pcnet32_probe_pci:                     ; @pcnet32_probe_pci
	.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
	bl	_pci_enable_device
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_start
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x8, _PCNET32_DMA_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCNET32_DMA_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_14
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x8, _pcnet32_debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pcnet32_debug@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NETIF_MSG_PROBE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETIF_MSG_PROBE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.4:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	tbz	w20, #31, LBB0_13
	b	LBB0_12
LBB0_5:
	mov	x20, x0
Lloh11:
	adrp	x8, _pcnet32_debug@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pcnet32_debug@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _NETIF_MSG_PROBE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NETIF_MSG_PROBE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.6:
	str	x20, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_7:
Lloh19:
	adrp	x8, _pcnet32_debug@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pcnet32_debug@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _NETIF_MSG_PROBE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NETIF_MSG_PROBE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_9:
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	tbz	w20, #31, LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_13:
	mov	x0, x20
	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
LBB0_14:
Lloh29:
	adrp	x8, _PCNET32_TOTAL_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCNET32_TOTAL_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.3@PAGE
Lloh33:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_request_region
	cbz	w0, LBB0_16
; %bb.15:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x19
	bl	_pcnet32_probe1
	mov	x20, x0
	tbz	w20, #31, LBB0_13
	b	LBB0_12
LBB0_16:
Lloh34:
	adrp	x8, _pcnet32_debug@GOTPAGE
Lloh35:
	ldr	x8, [x8, _pcnet32_debug@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _NETIF_MSG_PROBE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _NETIF_MSG_PROBE@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
LBB0_18:
Lloh42:
	adrp	x8, _EBUSY@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_pcnet32_debug,4,2              ; @pcnet32_debug
	.comm	_NETIF_MSG_PROBE,4,2            ; @NETIF_MSG_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable device -- err=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"card has no PCI IO resources, aborting\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCNET32_DMA_MASK,4,2           ; @PCNET32_DMA_MASK
l_.str.2:                               ; @.str.2
	.asciz	"architecture does not support 32bit PCI busmaster DMA\n"

	.comm	_PCNET32_TOTAL_SIZE,4,2         ; @PCNET32_TOTAL_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"pcnet32_probe_pci"

l_.str.4:                               ; @.str.4
	.asciz	"io address range already allocated\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_pcnet32_probe_pci
.subsections_via_symbols
