	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_mode
_pwm_mode:                              ## @pwm_mode
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_it8603@GOTPCREL(%rip), %r15
	cmpl	$2, %esi
	jg	LBB0_4
## %bb.1:
	movq	(%r15), %rax
	cmpq	%rax, (%r14)
	je	LBB0_4
## %bb.2:
	movl	8(%r14), %r12d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_3
LBB0_4:
	movq	16(%r14), %rdx
	movslq	%ebx, %rcx
	movl	$2, %eax
	testb	$-128, (%rdx,%rcx,4)
	jne	LBB0_9
## %bb.5:
	cmpl	$2, %ebx
	jg	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_8
LBB0_7:
	movq	24(%r14), %rax
	movq	(%rax,%rcx,8), %rbx
	movq	%r14, %rdi
	movl	$255, %esi
	callq	_pwm_to_reg
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	je	LBB0_9
LBB0_8:
	movl	$1, %eax
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_it8603,8,3                     ## @it8603
	.no_dead_strip	_pwm_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_mode
_pwm_mode:                              ; @pwm_mode
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _it8603@GOTPAGE
Lloh1:
	ldr	x21, [x21, _it8603@GOTPAGEOFF]
	cmp	w1, #2
	b.gt	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	w22, [x19, #8]
	mov	x0, x20
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_7
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, w20, sxtw #2]
	tbnz	w8, #7, LBB0_8
; %bb.4:
	cmp	w20, #2
	b.gt	LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_6:
	sxtw	x8, w20
	ldr	x9, [x19, #24]
	ldr	x20, [x9, x8, lsl #3]
	mov	x0, x19
	mov	w1, #255
	bl	_pwm_to_reg
	cmp	x20, x0
	b.ne	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	mov	w0, #2
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_it8603,8,3                     ; @it8603
	.no_dead_strip	_pwm_mode
.subsections_via_symbols
