	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_new_client_device          ## -- Begin function i2c_new_client_device
	.p2align	4, 0x90
_i2c_new_client_device:                 ## @i2c_new_client_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	%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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, 56(%rax)
	movl	44(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movl	40(%r15), %eax
	movl	%eax, 4(%rbx)
	movq	32(%r15), %rax
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	20(%r15), %esi
	movl	24(%r15), %edi
	callq	_i2c_dev_irq_from_resources
	movq	%rax, 64(%rbx)
LBB0_5:
	movl	8(%rbx), %edi
	movl	16(%r15), %esi
	movl	$4, %edx
	callq	_strlcpy
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_i2c_check_addr_validity
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	movq	_I2C_CLIENT_TEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%rbx), %eax
	setne	%cl
	leal	(%rcx,%rcx,2), %edx
	addl	$7, %edx
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_i2c_encode_flags_to_addr
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_check_addr_busy
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	%rbx, %r13
	addq	$16, %r13
	movq	56(%rbx), %rax
	movq	%rax, 40(%rbx)
	movq	_i2c_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_i2c_client_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movl	4(%r15), %edi
	callq	_of_node_get
	movl	%eax, 20(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_i2c_dev_set_name
	movl	8(%r15), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.9:
	movq	%r13, %rdi
	callq	_device_add_properties
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r12d
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_11:
	movq	%r13, %rdi
	callq	_device_register
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	movl	%eax, %r12d
	cmpl	$0, 8(%r15)
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_device_remove_properties
LBB0_14:
	movl	4(%r15), %edi
	callq	_of_node_put
LBB0_15:
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r12d, %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_17:
	movl	8(%rbx), %r15d
	movq	%r13, %rdi
	callq	_dev_name
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid %d-bit I2C address 0x%02hx\n"

	.comm	_I2C_CLIENT_TEN,4,2             ## @I2C_CLIENT_TEN
	.comm	_i2c_bus_type,4,2               ## @i2c_bus_type
	.comm	_i2c_client_type,4,2            ## @i2c_client_type
L_.str.1:                               ## @.str.1
	.asciz	"Failed to add properties to client %s: %d\n"

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

L_.str.3:                               ## @.str.3
	.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_client_device          ; -- Begin function i2c_new_client_device
	.p2align	2
_i2c_new_client_device:                 ; @i2c_new_client_device
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldp	w9, w8, [x21, #40]
	str	w8, [x0, #48]
	ldr	w8, [x21]
	stp	w8, w9, [x0]
	ldr	x8, [x21, #32]
	stp	x20, x8, [x0, #56]
	cbnz	x8, LBB0_3
; %bb.2:
	ldp	w1, w0, [x21, #20]
	bl	_i2c_dev_irq_from_resources
	str	x0, [x19, #64]
LBB0_3:
	ldr	w0, [x19, #8]
	ldr	w1, [x21, #16]
	mov	w2, #4
	bl	_strlcpy
	ldp	w1, w0, [x19]
	bl	_i2c_check_addr_validity
	cbz	w0, LBB0_6
; %bb.4:
	mov	x22, x0
Lloh3:
	adrp	x8, _I2C_CLIENT_TEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_CLIENT_TEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w3, [x19]
	tst	w8, w9
	mov	w8, #10
	mov	w9, #7
	csel	w2, w9, w8, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_6:
	mov	x0, x19
	bl	_i2c_encode_flags_to_addr
	mov	x1, x0
	mov	x0, x20
	bl	_i2c_check_addr_busy
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.7:
	add	x23, x19, #16
	ldr	x8, [x19, #56]
Lloh11:
	adrp	x9, _i2c_bus_type@GOTPAGE
Lloh12:
	ldr	x9, [x9, _i2c_bus_type@GOTPAGEOFF]
	str	x8, [x19, #40]
Lloh13:
	adrp	x8, _i2c_client_type@GOTPAGE
Lloh14:
	ldr	x8, [x8, _i2c_client_type@GOTPAGEOFF]
	stp	x8, x9, [x19, #24]
	ldr	w0, [x21, #4]
	bl	_of_node_get
	ldr	w8, [x21, #12]
	stp	w8, w0, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_i2c_dev_set_name
	ldr	w1, [x21, #8]
	cbz	w1, LBB0_10
; %bb.8:
	mov	x0, x23
	bl	_device_add_properties
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
	ldr	w2, [x19, #8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_dev_err
	b	LBB0_13
LBB0_10:
	mov	x0, x23
	bl	_device_register
	cbz	w0, LBB0_17
; %bb.11:
	mov	x22, x0
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x23
	bl	_device_remove_properties
LBB0_13:
	ldr	w0, [x21, #4]
	bl	_of_node_put
LBB0_14:
	ldp	w3, w2, [x19, #4]
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	bl	_kfree
	mov	x0, x22
LBB0_16:
	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
	b	_ERR_PTR
LBB0_17:
	ldr	w21, [x19, #8]
	mov	x0, x23
	bl	_dev_name
	mov	x3, x0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_dbg
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid %d-bit I2C address 0x%02hx\n"

	.comm	_I2C_CLIENT_TEN,4,2             ; @I2C_CLIENT_TEN
	.comm	_i2c_bus_type,4,2               ; @i2c_bus_type
	.comm	_i2c_client_type,4,2            ; @i2c_client_type
l_.str.1:                               ; @.str.1
	.asciz	"Failed to add properties to client %s: %d\n"

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

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

.subsections_via_symbols
