	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_find_peer
_tg3_find_peer:                         ## @tg3_find_peer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	(%rax), %r14d
	movl	4(%rax), %edi
	movl	%r14d, %r12d
	andl	$-8, %r12d
	movl	%r12d, %esi
	callq	_pci_get_slot
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%r15), %rbx
	jne	LBB0_17
LBB0_2:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	%r12d, %esi
	orl	$1, %esi
	callq	_pci_get_slot
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	(%r15), %rbx
	jne	LBB0_17
LBB0_4:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	%r12d, %esi
	orl	$2, %esi
	callq	_pci_get_slot
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	cmpq	(%r15), %rbx
	jne	LBB0_17
LBB0_6:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	%r12d, %esi
	orl	$3, %esi
	callq	_pci_get_slot
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpq	(%r15), %rbx
	jne	LBB0_17
LBB0_8:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	%r12d, %esi
	orl	$4, %esi
	callq	_pci_get_slot
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	cmpq	(%r15), %rbx
	jne	LBB0_17
LBB0_10:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	%r12d, %esi
	orl	$5, %esi
	callq	_pci_get_slot
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	cmpq	(%r15), %rbx
	jne	LBB0_17
LBB0_12:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movq	(%r15), %rax
	movl	4(%rax), %edi
	orl	$6, %r12d
	movl	%r12d, %esi
	callq	_pci_get_slot
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	cmpq	(%r15), %rbx
	jne	LBB0_17
LBB0_14:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movq	(%r15), %rax
	movl	4(%rax), %edi
	orl	$7, %r14d
	movl	%r14d, %esi
	callq	_pci_get_slot
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	cmpq	(%r15), %rbx
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_pci_dev_put
LBB0_17:
	movq	%rbx, %rdi
	callq	_pci_dev_put
LBB0_18:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movq	(%r15), %rbx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tg3_find_peer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_find_peer
_tg3_find_peer:                         ; @tg3_find_peer
	.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	x19, x0
	ldr	x8, [x0]
	ldp	w22, w0, [x8]
	and	w20, w22, #0xfffffff8
	mov	x1, x20
	bl	_pci_get_slot
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_17
LBB0_2:
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	orr	w1, w20, #0x1
	bl	_pci_get_slot
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_17
LBB0_4:
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	orr	w1, w20, #0x2
	bl	_pci_get_slot
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_17
LBB0_6:
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	orr	w1, w20, #0x3
	bl	_pci_get_slot
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_17
LBB0_8:
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	orr	w1, w20, #0x4
	bl	_pci_get_slot
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_17
LBB0_10:
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	w8, #5
	orr	w1, w20, w8
	bl	_pci_get_slot
	mov	x21, x0
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_17
LBB0_12:
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	orr	w1, w20, #0x6
	bl	_pci_get_slot
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_17
LBB0_14:
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	orr	w1, w22, #0x7
	bl	_pci_get_slot
	mov	x21, x0
	cbz	x0, LBB0_19
; %bb.15:
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_pci_dev_put
LBB0_17:
	mov	x0, x21
	bl	_pci_dev_put
LBB0_18:
	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
LBB0_19:
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x21, [x19]
	b	LBB0_18
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tg3_find_peer
.subsections_via_symbols
