	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_attach                ## -- Begin function cxd2820r_attach
	.p2align	4, 0x90
_cxd2820r_attach:                       ## @cxd2820r_attach
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, -56(%rbp)
	movups	4(%rdi), %xmm0
	movups	%xmm0, -72(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$1, -88(%rbp)
	leaq	-48(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-36(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_strscpy
	movl	(%rbx), %eax
	movl	%eax, -40(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_new_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	callq	*-80(%rbp)
	movq	%rax, %r15
	jmp	LBB0_4
LBB0_2:
	xorl	%r15d, %r15d
LBB0_4:
	movq	%r15, %rax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cxd2820r"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_attach                ; -- Begin function cxd2820r_attach
	.p2align	2
_cxd2820r_attach:                       ; @cxd2820r_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	stur	x2, [x29, #-24]
	ldur	q0, [x0, #4]
	stur	q0, [sp, #24]
	sub	x8, x29, #24
	str	x8, [sp]
	mov	w8, #1
	str	w8, [sp, #8]
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #52]
Lloh0:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strscpy
	ldr	w8, [x20]
	str	w8, [sp, #48]
	mov	x8, sp
	str	x8, [sp, #40]
	add	x1, sp, #40
	mov	x0, x19
	bl	_i2c_new_device
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [sp, #16]
	blr	x8
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cxd2820r"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
.subsections_via_symbols
