	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_enable
_set_enable:                            ## @set_enable
	.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	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_i2c_client
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %ebx
	cmpl	$3, %eax
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_MAX6650_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, (%r15)
	movq	_MAX6650_CFG_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ebx, %eax
	leaq	l___const.set_enable.max6650_modes(%rip), %rdx
	movl	(%rdx,%rax,4), %edx
	shll	$4, %edx
	orl	%ecx, %edx
	movl	%edx, (%r15)
	movq	_MAX6650_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_write_byte_data
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_3:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.set_enable.max6650_modes
l___const.set_enable.max6650_modes:
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	2                               ## 0x2

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal value for pwm1_enable (%d)\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_MAX6650_REG_CONFIG,4,2         ## @MAX6650_REG_CONFIG
	.comm	_MAX6650_CFG_MODE_MASK,4,2      ## @MAX6650_CFG_MODE_MASK
	.no_dead_strip	_set_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_enable
_set_enable:                            ; @set_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x22, x0
	cmp	w0, #3
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_3
LBB0_2:
	add	x23, x21, #4
	mov	x0, x23
	bl	_mutex_lock
Lloh5:
	adrp	x24, _MAX6650_REG_CONFIG@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MAX6650_REG_CONFIG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	str	w0, [x21]
Lloh7:
	adrp	x8, _MAX6650_CFG_MODE_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX6650_CFG_MODE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, l___const.set_enable.max6650_modes@PAGE
Lloh11:
	add	x9, x9, l___const.set_enable.max6650_modes@PAGEOFF
	bic	w8, w0, w8
	ldr	w9, [x9, w22, uxtw #2]
	orr	w2, w8, w9, lsl #4
	str	w2, [x21]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	mov	x0, x23
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.set_enable.max6650_modes
l___const.set_enable.max6650_modes:
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	2                               ; 0x2

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal value for pwm1_enable (%d)\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_MAX6650_REG_CONFIG,4,2         ; @MAX6650_REG_CONFIG
	.comm	_MAX6650_CFG_MODE_MASK,4,2      ; @MAX6650_CFG_MODE_MASK
	.no_dead_strip	_set_enable
.subsections_via_symbols
