	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2550_probe
_tsl2550_probe:                         ## @tsl2550_probe
	.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
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_READ_BYTE_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r15, 8(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movl	(%rax), %edx
	cmpl	$2, %edx
	jb	LBB0_9
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_10:
	movl	$0, (%r14)
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_11
LBB0_9:
	movl	%edx, (%r14)
	testl	%edx, %edx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_tsl2550_init_client
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.12:
	leaq	8(%r15), %rdi
	movq	_tsl2550_attr_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_create_group
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_DRIVER_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ## @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_I2C_FUNC_SMBUS_READ_BYTE_DATA,4,2 ## @I2C_FUNC_SMBUS_READ_BYTE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid operating_mode (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s operating mode\n"

L_.str.2:                               ## @.str.2
	.asciz	"extended"

L_.str.3:                               ## @.str.3
	.asciz	"standard"

	.comm	_tsl2550_attr_group,4,2         ## @tsl2550_attr_group
L_.str.4:                               ## @.str.4
	.asciz	"support ver. %s enabled\n"

	.comm	_DRIVER_VERSION,8,3             ## @DRIVER_VERSION
	.no_dead_strip	_tsl2550_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2550_probe
_tsl2550_probe:                         ; @tsl2550_probe
	.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	x19, x0
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGEOFF]
	ldr	x0, [x0, #16]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_READ_BYTE_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_READ_BYTE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	w2, [x8]
	cmp	w2, #2
	b.lo	LBB0_9
; %bb.4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_5:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_8:
	str	wzr, [x20]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
	str	w2, [x20]
Lloh20:
	adrp	x8, l_.str.2@PAGE
Lloh21:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh22:
	adrp	x9, l_.str.3@PAGE
Lloh23:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w2, #0
	csel	x2, x9, x8, eq
LBB0_10:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	add	x0, x20, #4
	bl	_mutex_init
	mov	x0, x19
	bl	_tsl2550_init_client
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.11:
	add	x0, x19, #8
Lloh26:
	adrp	x1, _tsl2550_attr_group@GOTPAGE
Lloh27:
	ldr	x1, [x1, _tsl2550_attr_group@GOTPAGEOFF]
	bl	_sysfs_create_group
	mov	x21, x0
	cbz	w0, LBB0_14
LBB0_12:
	mov	x0, x20
	bl	_kfree
LBB0_13:
	mov	x0, x21
	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_14:
Lloh28:
	adrp	x8, _DRIVER_VERSION@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DRIVER_VERSION@GOTPAGEOFF]
Lloh30:
	ldr	x2, [x8]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ; @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_I2C_FUNC_SMBUS_READ_BYTE_DATA,4,2 ; @I2C_FUNC_SMBUS_READ_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid operating_mode (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s operating mode\n"

l_.str.2:                               ; @.str.2
	.asciz	"extended"

l_.str.3:                               ; @.str.3
	.asciz	"standard"

	.comm	_tsl2550_attr_group,4,2         ; @tsl2550_attr_group
l_.str.4:                               ; @.str.4
	.asciz	"support ver. %s enabled\n"

	.comm	_DRIVER_VERSION,8,3             ; @DRIVER_VERSION
	.no_dead_strip	_tsl2550_probe
.subsections_via_symbols
