	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3_wmi_attach_spi_device
_s3_wmi_attach_spi_device:              ## @s3_wmi_attach_spi_device
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	leaq	-40(%rbp), %rsi
	callq	_acpi_bus_get_device
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	-40(%rbp), %rdi
	callq	_acpi_device_bid
	movl	%eax, %r15d
	movq	_SPI_TS_OBJ_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_4:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
LBB0_5:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_SPI_TS_OBJ_NAME,4,2            ## @SPI_TS_OBJ_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"duplicate entry %s\n"

	.no_dead_strip	_s3_wmi_attach_spi_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3_wmi_attach_spi_device
_s3_wmi_attach_spi_device:              ; @s3_wmi_attach_spi_device
	.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, x2
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_acpi_device_bid
	mov	x20, x0
Lloh0:
	adrp	x22, _SPI_TS_OBJ_NAME@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SPI_TS_OBJ_NAME@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strncmp
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x22]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_5
LBB0_4:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_5:
Lloh4:
	adrp	x8, _AE_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_SPI_TS_OBJ_NAME,4,2            ; @SPI_TS_OBJ_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"duplicate entry %s\n"

	.no_dead_strip	_s3_wmi_attach_spi_device
.subsections_via_symbols
