	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_new_device                 ## -- Begin function i2c_new_device
	.p2align	4, 0x90
_i2c_new_device:                        ## @i2c_new_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 40(%rax)
	movl	24(%r15), %eax
	movl	%eax, 36(%rbx)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
LBB0_3:
	movl	12(%r15), %eax
	movl	%eax, 52(%rbx)
	movl	8(%r15), %eax
	movl	%eax, (%rbx)
	movl	4(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	movl	$4, %edx
	callq	_strlcpy
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_i2c_check_addr
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %r15
	addq	$8, %r15
	movq	40(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	_i2c_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_i2c_client_type@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_i2c_adapter_id
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_set_name
	movq	%r15, %rdi
	callq	_device_register
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %r8d
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	4(%rbx), %r12d
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_i2c_bus_type,4,2               ## @i2c_bus_type
	.comm	_i2c_client_type,4,2            ## @i2c_client_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d-%04x"

L_.str.1:                               ## @.str.1
	.asciz	"client [%s] registered with bus id %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to register i2c client %s at 0x%02x (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_new_device                 ; -- Begin function i2c_new_device
	.p2align	2
_i2c_new_device:                        ; @i2c_new_device
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	str	x20, [x19, #40]
	ldr	w8, [x21, #24]
	str	w8, [x19, #36]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x8]
	str	w8, [x19, #32]
LBB0_3:
	ldp	w9, w8, [x21, #8]
	str	w9, [x19]
	ldp	w1, w9, [x21]
	stp	w9, w8, [x19, #48]
	ldr	w0, [x19, #4]
	mov	w2, #4
	bl	_strlcpy
	ldr	w1, [x19]
	mov	x0, x20
	bl	_i2c_check_addr
	mov	x4, x0
	cbnz	w0, LBB0_5
; %bb.4:
	add	x21, x19, #8
	ldr	x8, [x19, #40]
	str	x8, [x19, #24]
Lloh3:
	adrp	x8, _i2c_bus_type@GOTPAGE
Lloh4:
	ldr	x8, [x8, _i2c_bus_type@GOTPAGEOFF]
Lloh5:
	adrp	x9, _i2c_client_type@GOTPAGE
Lloh6:
	ldr	x9, [x9, _i2c_client_type@GOTPAGEOFF]
	stp	x9, x8, [x19, #8]
	mov	x0, x20
	bl	_i2c_adapter_id
	mov	x2, x0
	ldr	w3, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_set_name
	mov	x0, x21
	bl	_device_register
	mov	x4, x0
	cbz	w0, LBB0_7
LBB0_5:
	ldp	w3, w2, [x19]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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_7:
	ldr	w22, [x19, #4]
	mov	x0, x21
	bl	_dev_name
	mov	x3, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_dbg
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_i2c_bus_type,4,2               ; @i2c_bus_type
	.comm	_i2c_client_type,4,2            ; @i2c_client_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d-%04x"

l_.str.1:                               ; @.str.1
	.asciz	"client [%s] registered with bus id %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to register i2c client %s at 0x%02x (%d)\n"

.subsections_via_symbols
