	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_set_pwm
_hw_set_pwm:                            ## @hw_set_pwm
	.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
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	testl	%r13d, %r13d
	je	LBB0_1
## %bb.2:
	cmpl	$2, %r13d
	je	LBB0_5
## %bb.3:
	cmpl	$1, %r13d
	jne	LBB0_6
## %bb.4:
	movl	$224, %eax
	jmp	LBB0_9
LBB0_1:
	movl	$96, %eax
	jmp	LBB0_9
LBB0_5:
	leal	-1(%r15), %eax
	cmpl	$7, %eax
	jae	LBB0_6
## %bb.7:
	movl	$107, %ecx
	btl	%eax, %ecx
	jb	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_8:
	cltq
	leaq	l_switch.table.hw_set_pwm(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_9:
	movq	(%r12), %rcx
	movslq	%ebx, %rbx
	movl	%r13d, (%rcx,%rbx,4)
	movq	8(%r12), %rcx
	movl	%r15d, (%rcx,%rbx,4)
	movq	16(%r12), %rcx
	movq	_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	$-225, %edx
	andl	(%rcx,%rbx,4), %edx
	orl	%eax, %edx
	movl	%edx, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_PWM_CONFIG_REG
	movq	16(%r12), %rcx
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CONTROL,8,3                    ## @CONTROL
	.no_dead_strip	_hw_set_pwm
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.hw_set_pwm
l_switch.table.hw_set_pwm:
	.long	0                               ## 0x0
	.long	32                              ## 0x20
	.long	0                               ## 0x0
	.long	64                              ## 0x40
	.long	0                               ## 0x0
	.long	160                             ## 0xa0
	.long	192                             ## 0xc0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_set_pwm
_hw_set_pwm:                            ; @hw_set_pwm
	.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	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	cbz	w23, LBB0_4
; %bb.1:
	cmp	w23, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w23, #1
	b.ne	LBB0_7
; %bb.3:
	mov	w8, #224
	b	LBB0_9
LBB0_4:
	mov	w8, #96
	b	LBB0_9
LBB0_5:
	sub	w8, w22, #1
	cmp	w8, #7
	b.hs	LBB0_7
; %bb.6:
	mov	w9, #107
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x9, l_switch.table.hw_set_pwm@PAGE
Lloh4:
	add	x9, x9, l_switch.table.hw_set_pwm@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
LBB0_9:
	sbfiz	x24, x20, #2, #32
	ldp	x9, x10, [x21]
	str	w23, [x9, x24]
	str	w22, [x10, x24]
	ldr	x9, [x21, #16]
Lloh5:
	adrp	x22, _CONTROL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CONTROL@GOTPAGEOFF]
	ldr	x10, [x22]
	ldr	x9, [x9, x10, lsl #3]
	ldr	w10, [x9, x24]
	and	w10, w10, #0xffffff1f
	orr	w8, w10, w8
	str	w8, [x9, x24]
	mov	x0, x20
	bl	_PWM_CONFIG_REG
	mov	x1, x0
	ldr	x8, [x21, #16]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldrsw	x2, [x8, x24]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	w0, #0
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CONTROL,8,3                    ; @CONTROL
	.no_dead_strip	_hw_set_pwm
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.hw_set_pwm
l_switch.table.hw_set_pwm:
	.long	0                               ; 0x0
	.long	32                              ; 0x20
	.long	0                               ; 0x0
	.long	64                              ; 0x40
	.long	0                               ; 0x0
	.long	160                             ; 0xa0
	.long	192                             ; 0xc0

.subsections_via_symbols
