	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_irda_set_mode
_pxa_irda_set_mode:                     ## @pxa_irda_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	(%rbx), %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	4(%rcx), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	movq	_IR_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	sete	%cl
	cmpl	$0, (%rax)
	movl	4(%rax), %edi
	sete	%al
	xorb	%cl, %al
	movzbl	%al, %esi
	callq	_gpio_set_value
LBB0_3:
	movl	(%rbx), %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pxa2xx_transceiver_mode        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IR_OFF,4,2                     ## @IR_OFF
	.no_dead_strip	_pxa_irda_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa_irda_set_mode
_pxa_irda_set_mode:                     ; @pxa_irda_set_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_2:
	ldr	w0, [x8, #4]
	bl	_gpio_is_valid
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _IR_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IR_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w19
	cset	w9, eq
	ldp	w8, w0, [x8]
	cmp	w8, #0
	cset	w8, eq
	eor	w1, w9, w8
	bl	_gpio_set_value
LBB0_4:
	ldr	w0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pxa2xx_transceiver_mode
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IR_OFF,4,2                     ; @IR_OFF
	.no_dead_strip	_pxa_irda_set_mode
.subsections_via_symbols
