	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_interface_read_dme
_gb_interface_read_dme:                 ## @gb_interface_read_dme
	.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
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	_DME_DDBL1_MANUFACTURERID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%rdi), %r14
	movq	%r14, %rdx
	callq	_gb_interface_dme_attr_get
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	_DME_DDBL1_PRODUCTID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%rbx), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_gb_interface_dme_attr_get
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	(%r14), %rax
	movq	_TOSHIBA_DMID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	(%r15), %rax
	movq	_TOSHIBA_ES2_BRIDGE_DPID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_GB_INTERFACE_QUIRK_NO_GMP_IDS@GOTPCREL(%rip), %rax
	movl	24(%rbx), %ecx
	orl	(%rax), %ecx
	movq	_GB_INTERFACE_QUIRK_NO_INIT_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_gb_interface_read_ara_dme
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	$1, (%rbx)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DME_DDBL1_MANUFACTURERID,4,2   ## @DME_DDBL1_MANUFACTURERID
	.comm	_DME_DDBL1_PRODUCTID,4,2        ## @DME_DDBL1_PRODUCTID
	.comm	_TOSHIBA_DMID,8,3               ## @TOSHIBA_DMID
	.comm	_TOSHIBA_ES2_BRIDGE_DPID,8,3    ## @TOSHIBA_ES2_BRIDGE_DPID
	.comm	_GB_INTERFACE_QUIRK_NO_GMP_IDS,4,2 ## @GB_INTERFACE_QUIRK_NO_GMP_IDS
	.comm	_GB_INTERFACE_QUIRK_NO_INIT_STATUS,4,2 ## @GB_INTERFACE_QUIRK_NO_INIT_STATUS
	.no_dead_strip	_gb_interface_read_dme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_interface_read_dme
_gb_interface_read_dme:                 ; @gb_interface_read_dme
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x8, _DME_DDBL1_MANUFACTURERID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DME_DDBL1_MANUFACTURERID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x20, x0, #8
	mov	x2, x20
	bl	_gb_interface_dme_attr_get
	cbnz	w0, LBB0_9
; %bb.3:
Lloh3:
	adrp	x8, _DME_DDBL1_PRODUCTID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DME_DDBL1_PRODUCTID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x21, x19, #16
	mov	x0, x19
	mov	x2, x21
	bl	_gb_interface_dme_attr_get
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _TOSHIBA_DMID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TOSHIBA_DMID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _TOSHIBA_ES2_BRIDGE_DPID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TOSHIBA_ES2_BRIDGE_DPID@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _GB_INTERFACE_QUIRK_NO_GMP_IDS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GB_INTERFACE_QUIRK_NO_GMP_IDS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _GB_INTERFACE_QUIRK_NO_INIT_STATUS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GB_INTERFACE_QUIRK_NO_INIT_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_7:
	mov	x0, x19
	bl	_gb_interface_read_ara_dme
	cbnz	w0, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DME_DDBL1_MANUFACTURERID,4,2   ; @DME_DDBL1_MANUFACTURERID
	.comm	_DME_DDBL1_PRODUCTID,4,2        ; @DME_DDBL1_PRODUCTID
	.comm	_TOSHIBA_DMID,8,3               ; @TOSHIBA_DMID
	.comm	_TOSHIBA_ES2_BRIDGE_DPID,8,3    ; @TOSHIBA_ES2_BRIDGE_DPID
	.comm	_GB_INTERFACE_QUIRK_NO_GMP_IDS,4,2 ; @GB_INTERFACE_QUIRK_NO_GMP_IDS
	.comm	_GB_INTERFACE_QUIRK_NO_INIT_STATUS,4,2 ; @GB_INTERFACE_QUIRK_NO_INIT_STATUS
	.no_dead_strip	_gb_interface_read_dme
.subsections_via_symbols
