	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_debug_get_oid
_prism54_debug_get_oid:                 ## @prism54_debug_get_oid
	.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
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movl	$0, (%r14)
	movq	%r13, %rdi
	callq	_islpci_get_state
	movq	_PRV_STATE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_10
## %bb.1:
	movl	(%r13), %edx
	movl	4(%r13), %edi
	movq	_PIMFOR_OP_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r9
	movq	%r15, %rcx
	movl	$256, %r8d                      ## imm = 0x100
	callq	_islpci_mgt_transaction
	movl	%eax, %ebx
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printk
	movq	-48(%rbp), %rdi
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.2:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	_PIMFOR_OP_ERROR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
	jmp	LBB0_9
LBB0_4:
	testq	%rdi, %rdi
	je	LBB0_6
LBB0_5:
	callq	_islpci_mgt_release
LBB0_6:
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	negl	%ebx
	jmp	LBB0_10
LBB0_8:
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %rax
LBB0_9:
	movl	8(%rax), %edx
	movl	%edx, (%r14)
	movl	(%rdi), %esi
	movq	%r15, %rdi
	callq	_memcpy
	movq	-48(%rbp), %rdi
	callq	_islpci_mgt_release
	movl	(%r12), %esi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: get_oid 0x%08X\n"

	.comm	_PRV_STATE_INIT,8,3             ## @PRV_STATE_INIT
	.comm	_PIMFOR_OP_GET,4,2              ## @PIMFOR_OP_GET
L_.str.1:                               ## @.str.1
	.asciz	"%s: ret: %i\n"

	.comm	_PIMFOR_OP_ERROR,8,3            ## @PIMFOR_OP_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"%s: EIO\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: len: %i\n"

	.no_dead_strip	_prism54_debug_get_oid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_debug_get_oid
_prism54_debug_get_oid:                 ; @prism54_debug_get_oid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	bl	_netdev_priv
	mov	x22, x0
Lloh0:
	adrp	x23, _EIO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EIO@GOTPAGEOFF]
	ldr	w24, [x23]
	ldr	w1, [x20]
	ldr	w8, [x0]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	str	wzr, [x19]
	mov	x0, x22
	bl	_islpci_get_state
Lloh4:
	adrp	x8, _PRV_STATE_INIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PRV_STATE_INIT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	neg	w0, w24
	b	LBB0_10
LBB0_2:
Lloh7:
	adrp	x8, _PIMFOR_OP_GET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PIMFOR_OP_GET@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldp	w2, w0, [x22]
	add	x5, sp, #8
	mov	x3, x21
	mov	w4, #256
	bl	_islpci_mgt_transaction
	mov	x22, x0
	ldr	w1, [x20]
	str	x22, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldr	x0, [sp, #8]
	cmp	w22, #0
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_4
; %bb.3:
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_4:
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh12:
	adrp	x10, _PIMFOR_OP_ERROR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PIMFOR_OP_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
LBB0_5:
	bl	_islpci_mgt_release
LBB0_6:
	ldr	w1, [x20]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	ldr	w8, [x23]
	cbz	w8, LBB0_8
; %bb.7:
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	ldr	x0, [sp, #8]
	ldr	x8, [x0, #8]
LBB0_9:
	ldr	w2, [x8, #8]
	str	w2, [x19]
	ldr	w1, [x0]
	mov	x0, x21
	bl	_memcpy
	ldr	x0, [sp, #8]
	bl	_islpci_mgt_release
	ldr	w1, [x20]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: get_oid 0x%08X\n"

	.comm	_PRV_STATE_INIT,8,3             ; @PRV_STATE_INIT
	.comm	_PIMFOR_OP_GET,4,2              ; @PIMFOR_OP_GET
l_.str.1:                               ; @.str.1
	.asciz	"%s: ret: %i\n"

	.comm	_PIMFOR_OP_ERROR,8,3            ; @PIMFOR_OP_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"%s: EIO\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: len: %i\n"

	.no_dead_strip	_prism54_debug_get_oid
.subsections_via_symbols
