	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wdt87xx_set_feature
_wdt87xx_set_feature:                   ## @wdt87xx_set_feature
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PKT_WRITE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	shlq	$2, %r12
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	$34, (%r14)
	movq	_CMD_REPORT_ID_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %ecx
	cmpl	$16, %ecx
	jl	LBB0_2
## %bb.1:
	movl	%ecx, 16(%r14)
	movl	$5, %eax
	movl	$48, %ecx
	jmp	LBB0_3
LBB0_2:
	orl	$48, %ecx
	movl	$4, %eax
LBB0_3:
	movl	%ecx, 8(%r14)
	movl	$3, 12(%r14)
	movl	%eax, %ecx
	movq	$35, (%r14,%rcx,4)
	orl	$2, %eax
	movzbl	%bl, %edx
	movl	%edx, (%r14,%rax,4)
	movzbl	%bh, %eax
	movl	%eax, 12(%r14,%rcx,4)
	leaq	(%rcx,%rbx), %r13
	addq	$4, %r13
	cmpq	%r12, %r13
	jbe	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	addq	$4, %rcx
	leaq	(%r14,%rcx,4), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_i2c_master_send
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_WDT_COMMAND_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_WRITE_SIZE,4,2             ## @PKT_WRITE_SIZE
	.comm	_CMD_REPORT_ID_OFFSET,8,3       ## @CMD_REPORT_ID_OFFSET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set feature failed: %d\n"

	.comm	_WDT_COMMAND_DELAY_MS,4,2       ## @WDT_COMMAND_DELAY_MS
	.no_dead_strip	_wdt87xx_set_feature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wdt87xx_set_feature
lCPI0_0:
	.long	34                              ; 0x22
	.long	0                               ; 0x0
lCPI0_1:
	.long	35                              ; 0x23
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wdt87xx_set_feature:                   ; @wdt87xx_set_feature
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PKT_WRITE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PKT_WRITE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
Lloh10:
	adrp	x8, _CMD_REPORT_ID_OFFSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD_REPORT_ID_OFFSET@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w8, [x1, x8, lsl #2]
	cmp	w8, #16
	b.lt	LBB0_2
; %bb.1:
	str	w8, [x20, #16]
	mov	w8, #5
	mov	w9, #48
	b	LBB0_3
LBB0_2:
	orr	w9, w8, #0x30
	mov	w8, #4
LBB0_3:
	mov	w10, #3
	stp	w9, w10, [x20, #8]
	mov	w9, w8
	lsl	x9, x9, #2
	orr	w10, w8, #0x2
Lloh13:
	adrp	x11, lCPI0_1@PAGE
Lloh14:
	ldr	d0, [x11, lCPI0_1@PAGEOFF]
	str	d0, [x20, x9]
	and	w9, w2, #0xff
	add	w11, w8, #3
	str	w9, [x20, w10, uxtw #2]
	ubfx	w9, w2, #8, #8
	add	w8, w8, #4
	str	w9, [x20, w11, uxtw #2]
	add	x21, x8, x2
	cmp	x21, x12, lsl #2
	b.ls	LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_5:
	add	x0, x20, x8, lsl #2
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_i2c_master_send
	tbnz	w0, #31, LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _WDT_COMMAND_DELAY_MS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WDT_COMMAND_DELAY_MS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_mdelay
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	mov	x20, x0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	sub	sp, x29, #32
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_WRITE_SIZE,4,2             ; @PKT_WRITE_SIZE
	.comm	_CMD_REPORT_ID_OFFSET,8,3       ; @CMD_REPORT_ID_OFFSET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set feature failed: %d\n"

	.comm	_WDT_COMMAND_DELAY_MS,4,2       ; @WDT_COMMAND_DELAY_MS
	.no_dead_strip	_wdt87xx_set_feature
.subsections_via_symbols
